Determines whether the source contains all of the specified values and nothing else.
Namespace:
Tortuga.Anchor
Assembly:
Tortuga.Anchor (in Tortuga.Anchor.dll)
public static bool ContainsOnly<T>(
IEnumerable<T> source,
params T[] values
)
Public Shared Function ContainsOnly(Of T) ( _
source As IEnumerable(Of T), _
ParamArray values As T() _
) As Boolean
Type Parameters
- T
Parameters
- source
- Type: IEnumerable<(Of <(<'T>)>)>
The source to be checked.
- values
- Type: array<T>[]()[][]
The values.
Return Value
true if the source contains all of the specified values and nothing else; otherwise,
false.
Duplicates in either collection will be ignored.