Unosquare
    Show / Hide Table of Contents

    Class IPAddressRangeExtensions

    Provides extension methods for instances and collections of IPAddressRange.

    Inheritance
    Object
    IPAddressRangeExtensions
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    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 IEnumerable<IPAddressRange> interface on which this method is called.

    IPAddress address

    The to look for.

    Returns
    Type Description
    Boolean

    true if any of the ranges in this contains address; otherwise, false.

    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 IEnumerable<IPAddressRange> interface on which this method is called.

    IPAddress address

    The to look for.

    Returns
    Type Description
    Boolean

    true if none of the ranges in this contains address; otherwise, false.

    Comments

    Back to top Copyright © 2017-2019 Unosquare