Class EndPointExtensions
Extension methods for
Inheritance
System.Object
EndPointExtensions
Namespace: X10D.Net
Assembly: X10D.dll
Syntax
public static class EndPointExtensions : object
Methods
| Improve this Doc View SourceGetHost(EndPoint)
Returns the hostname for the current
Declaration
public static string GetHost(this EndPoint endPoint)
Parameters
Type | Name | Description |
---|---|---|
EndPoint | endPoint | The endpoint whose hostname to get. |
Returns
Type | Description |
---|---|
System.String |
|
GetPort(EndPoint)
Returns the port number for the current
Declaration
public static int GetPort(this EndPoint endPoint)
Parameters
Type | Name | Description |
---|---|---|
EndPoint | endPoint | The endpoint whose port number to get. |
Returns
Type | Description |
---|---|
System.Int32 |
|