AssertionHelpers.ThrowIfNullOrEmpty 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 |
|---|---|
| ThrowIfNullOrEmpty(ICollection, String) | |
| ThrowIfNullOrEmpty(String, String) | |
| ThrowIfNullOrEmpty<TKey,TValue>(IDictionary<TKey,TValue>, String) |
ThrowIfNullOrEmpty(ICollection, String)
public static void ThrowIfNullOrEmpty(System.Collections.ICollection collection, string name);
static member ThrowIfNullOrEmpty : System.Collections.ICollection * string -> unit
Public Shared Sub ThrowIfNullOrEmpty (collection As ICollection, name As String)
Parameters
- collection
- ICollection
- name
- String
Applies to
ThrowIfNullOrEmpty<TKey,TValue>(IDictionary<TKey,TValue>, String)
public static void ThrowIfNullOrEmpty<TKey,TValue>(System.Collections.Generic.IDictionary<TKey,TValue> dict, string name);
static member ThrowIfNullOrEmpty : System.Collections.Generic.IDictionary<'Key, 'Value> * string -> unit
Public Shared Sub ThrowIfNullOrEmpty(Of TKey, TValue) (dict As IDictionary(Of TKey, TValue), name As String)
Type Parameters
- TKey
- TValue
Parameters
- dict
- IDictionary<TKey,TValue>
- name
- String