Class IPAddressRangeExtensions
Provides extension methods for instances and collections of IPAddressRange.
Inherited Members
Namespace: Swan.Net
Syntax
public static class IPAddressRangeExtensions
Methods
AnyContains(IEnumerable<IPAddressRange>, IPAddress)
Determines whether any element of a sequence of IPAddressRange instances
contains the given address
.
Declaration
public static bool AnyContains(this IEnumerable<IPAddressRange> this, IPAddress address)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<IPAddressRange> | this | The |
IPAddress | address | The |
Returns
Type | Description |
---|---|
Boolean | true if any of the ranges in |
NoneContains(IEnumerable<IPAddressRange>, IPAddress)
Determines whether no element of a sequence of IPAddressRange instances
contains the given address
.
Declaration
public static bool NoneContains(this IEnumerable<IPAddressRange> this, IPAddress address)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<IPAddressRange> | this | The |
IPAddress | address | The |
Returns
Type | Description |
---|---|
Boolean | true if none of the ranges in |