Optional.IsCollectionDefined Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| IsCollectionDefined<T>(IEnumerable<T>) | |
| IsCollectionDefined<TKey,TValue>(IDictionary<TKey,TValue>) | |
| IsCollectionDefined<TKey,TValue>(IReadOnlyDictionary<TKey,TValue>) |
IsCollectionDefined<T>(IEnumerable<T>)
- Source:
- Optional.cs
public static bool IsCollectionDefined<T>(System.Collections.Generic.IEnumerable<T> collection);
static member IsCollectionDefined : seq<'T> -> bool
Public Shared Function IsCollectionDefined(Of T) (collection As IEnumerable(Of T)) As Boolean
Type Parameters
- T
Parameters
- collection
- IEnumerable<T>
Returns
Applies to
IsCollectionDefined<TKey,TValue>(IDictionary<TKey,TValue>)
- Source:
- Optional.cs
public static bool IsCollectionDefined<TKey,TValue>(System.Collections.Generic.IDictionary<TKey,TValue> collection);
static member IsCollectionDefined : System.Collections.Generic.IDictionary<'Key, 'Value> -> bool
Public Shared Function IsCollectionDefined(Of TKey, TValue) (collection As IDictionary(Of TKey, TValue)) As Boolean
Type Parameters
- TKey
- TValue
Parameters
- collection
- IDictionary<TKey,TValue>
Returns
Applies to
IsCollectionDefined<TKey,TValue>(IReadOnlyDictionary<TKey,TValue>)
- Source:
- Optional.cs
public static bool IsCollectionDefined<TKey,TValue>(System.Collections.Generic.IReadOnlyDictionary<TKey,TValue> collection);
static member IsCollectionDefined : System.Collections.Generic.IReadOnlyDictionary<'Key, 'Value> -> bool
Public Shared Function IsCollectionDefined(Of TKey, TValue) (collection As IReadOnlyDictionary(Of TKey, TValue)) As Boolean
Type Parameters
- TKey
- TValue
Parameters
- collection
- IReadOnlyDictionary<TKey,TValue>