A Sandcastle Documented Class Library

# NetworkHelper CidrToIPRange Method

Parses the specified IP address range in CIDR notation and returns a tuple containing the (inclusive) start and end IP addresses of the range.

Namespace: Dundas.BI.Utility
Assembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (10.0.0.1002)
Syntax
C#
VB
C++
F#
Copy

    public static Tuple<IPAddress, IPAddress> CidrToIPRange(
    	string cidr
    )

    Public Shared Function CidrToIPRange (
    	cidr As String
    ) As Tuple(Of IPAddress, IPAddress)

    public:
    static Tuple<IPAddress^, IPAddress^>^ CidrToIPRange(
    	String^ cidr
    )

    static member CidrToIPRange :
            cidr : string -> Tuple<IPAddress, IPAddress>

#### Parameters

cidr
  Type: System
  String
  The IP address range in CIDR notation.

#### Return Value

Type: Tuple
IPAddress, IPAddress
The starting and ending IP addresses of the range.
Exceptions

Exception | Condition
--- | ---
ArgumentException | cidr is or empty.
FormatException | An IP address could not be parsed from cidr.

See Also

#### Reference

NetworkHelper Class
Dundas.BI.Utility Namespace