ComponentOne FinancialChart for WPF
C1.WPF Namespace / Extensions Class / ContainsAny<T> Method
The list.
The values.



In This Topic
    ContainsAny<T> Method
    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
    'Usage
     
    
    Dim list As List(Of T)
    Dim values() As T
    Dim value As Boolean
     
    value = Extensions.ContainsAny(Of T)(list, values)
    [Extension()]
    public static bool ContainsAny<T>( 
       List<T> list,
       params T[] values
    )
    [Extension()]
    public:
    static bool ContainsAnygeneric<typename T>
    ( 
       List<T^>^ list,
       ... array<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