ENet Class Library for C#

ENetAddress Explicit to Conversion

[Visual Basic]
Public Shared Narrowing Operator ( _
   ByVal endPoint As IPEndPoint _
)
[C#]
public static explicit operator ENetAddress(
   IPEndPoint endPoint
);

Exceptions

Exception Type Condition
ArgumentNullException The address is null.
ArgumentException The address is not IPv4.
ArgumentOutOfRangeException The port is less than 0 or greater than 65535.

See Also

ENetAddress Class | ENet.Native Namespace