Sprache

AssertionHelpers.ThrowIfNullOrEmpty Method

Definition

Overloads

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(String, String)

public static void ThrowIfNullOrEmpty(string str, string name);
static member ThrowIfNullOrEmpty : string * string -> unit
Public Shared Sub ThrowIfNullOrEmpty (str As String, name As String)

Parameters

str
String
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

Applies to