ComponentOne Basic Library for WPF and Silverlight
ContainsAny<T> Method (Extensions)


C1.Silverlight Namespace > Extensions Class : ContainsAny<T> Method
The list.
The values.
Determines whether the specified list contains any of the following values.
Syntax
'Declaration
 
<System.Runtime.CompilerServices.ExtensionAttribute()>
Public Shared Function ContainsAny(Of T)( _
   ByVal list As System.Collections.Generic.List(Of T), _
   ByVal ParamArray values() As T _
) As System.Boolean
'Usage
 
Dim list As System.Collections.Generic.List(Of T)
Dim values() As T
Dim value As System.Boolean
 
value = Extensions.ContainsAny(Of T)(list, values)
[System.Runtime.CompilerServices.Extension()]
public static System.bool ContainsAny<T>( 
   System.Collections.Generic.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

Reference

Extensions Class
Extensions Members