C# Class org.GraphDefined.Vanaheimr.Hermod.IPAddressHelper

IP address helpers.
Datei anzeigen Open project: Vanaheimr/Hermod Class Usage Examples

Public Methods

Method Description
Build ( Byte ByteArray ) : IIPAddress

Create a new IIPAddress based on the given byte array representation.

Build ( System IPAddress ) : IIPAddress

Create a new IIPAddress based on the given System.Net.IPAddress.

Parse ( String IPAddressString ) : IIPAddress

Parsed the given string representation into a new IIPAddress.

TryParse ( String IPAddressString, IIPAddress &IPAddress ) : System.Boolean

Parsed the given string representation into a new IIPAddress.

Method Details

Build() public static method

Create a new IIPAddress based on the given byte array representation.
public static Build ( Byte ByteArray ) : IIPAddress
ByteArray Byte A byte representation of an IPAddress.
return IIPAddress

Build() public static method

Create a new IIPAddress based on the given System.Net.IPAddress.
public static Build ( System IPAddress ) : IIPAddress
IPAddress System A System.Net.IPAddress.
return IIPAddress

Parse() public static method

Parsed the given string representation into a new IIPAddress.
public static Parse ( String IPAddressString ) : IIPAddress
IPAddressString String An IPAddress string representation.
return IIPAddress

TryParse() public static method

Parsed the given string representation into a new IIPAddress.
public static TryParse ( String IPAddressString, IIPAddress &IPAddress ) : System.Boolean
IPAddressString String A string representation of an IP address.
IPAddress IIPAddress The parsed IP address.
return System.Boolean