C# Class modauthtkt.IPAddressHelper

显示文件 Open project: AppliedIS/csharp_auth_tkt

Public Methods

Method Description
IsValid ( string ipAddress ) : bool

Determines if a string is a valid IP address

StringToIPAddressBytes ( string ipAddress ) : byte[]

Converts a string to a byte array representation of an IP address

Private Methods

Method Description
StringToIPAddress ( string ipAddress ) : IPAddress

Converts a string to an IPAddress object

Method Details

IsValid() public static method

Determines if a string is a valid IP address
public static IsValid ( string ipAddress ) : bool
ipAddress string IP address as a string
return bool

StringToIPAddressBytes() public static method

Converts a string to a byte array representation of an IP address
public static StringToIPAddressBytes ( string ipAddress ) : byte[]
ipAddress string IP address as a string
return byte[]