Walter.Net.Networking
IP2Cidr Method
Walter.Net.Networking Assembly > Walter.Net.Networking Namespace > NetworkExtensionMethods Class : IP2Cidr Method
The IP address.
Convert the IP address to a CIDR format (Classless Inter-Domain Routing)
Syntax
public static long IP2Cidr( 
   IPAddress ip
)

Parameters

ip
The IP address.

Return Value

System.Int64.
Remarks
use CidrToIp() extension method to revert the ip address ulong value back to a IP address
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

NetworkExtensionMethods Class
NetworkExtensionMethods Members