Basic Library for WPF and Silverlight | ComponentOne
C1.Silverlight Namespace / Extensions Class / ContainsAny<T> Method
The list.
The values.

In This Topic
    ContainsAny<T> Method (Extensions)
    In This Topic
    Determines whether the specified list contains any of the following values.
    Syntax
    'Declaration
     
    
    <ExtensionAttribute()>
    Public Shared Function ContainsAny(Of T)( _
       ByVal list As List(Of T), _
       ByVal ParamArray values() As T _
    ) As Boolean
    [Extension()]
    public static bool ContainsAny<T>( 
       List<T> list,
       params T[] values
    )

    Parameters

    list
    The list.
    values
    The values.

    Type Parameters

    T

    Return Value

    true if the specified list contains any; otherwise, false.
    See Also