Assumes.NotNullOrEmpty Method

Definition

Overloads

NotNullOrEmpty(String)

Throws Microsoft.Assumes.InternalErrorException if the specified value is null or empty.

NotNullOrEmpty<T>(ICollection<T>)

Throws Microsoft.Assumes.InternalErrorException if the specified value is null or empty.

NotNullOrEmpty<T>(IEnumerable<T>)

Throws Microsoft.Assumes.InternalErrorException if the specified value is null or empty.

NotNullOrEmpty(String)

Throws Microsoft.Assumes.InternalErrorException if the specified value is null or empty.

public:
 static void NotNullOrEmpty(System::String ^ value);
[System.Diagnostics.DebuggerStepThrough]
public static void NotNullOrEmpty (string? value);
[<System.Diagnostics.DebuggerStepThrough>]
static member NotNullOrEmpty : string -> unit
Public Shared Sub NotNullOrEmpty (value As String)

Parameters

value
String
Attributes

Applies to

NotNullOrEmpty<T>(ICollection<T>)

Throws Microsoft.Assumes.InternalErrorException if the specified value is null or empty.

public:
generic <typename T>
 static void NotNullOrEmpty(System::Collections::Generic::ICollection<T> ^ values);
[System.Diagnostics.DebuggerStepThrough]
public static void NotNullOrEmpty<T> (System.Collections.Generic.ICollection<T>? values);
[<System.Diagnostics.DebuggerStepThrough>]
static member NotNullOrEmpty : System.Collections.Generic.ICollection<'T> -> unit
Public Shared Sub NotNullOrEmpty(Of T) (values As ICollection(Of T))

Type Parameters

T

The type of value to test.

Parameters

values
ICollection<T>
Attributes

Applies to

NotNullOrEmpty<T>(IEnumerable<T>)

Throws Microsoft.Assumes.InternalErrorException if the specified value is null or empty.

public:
generic <typename T>
 static void NotNullOrEmpty(System::Collections::Generic::IEnumerable<T> ^ values);
[System.Diagnostics.DebuggerStepThrough]
public static void NotNullOrEmpty<T> (System.Collections.Generic.IEnumerable<T>? values);
[<System.Diagnostics.DebuggerStepThrough>]
static member NotNullOrEmpty : seq<'T> -> unit
Public Shared Sub NotNullOrEmpty(Of T) (values As IEnumerable(Of T))

Type Parameters

T

The type of value to test.

Parameters

values
IEnumerable<T>
Attributes

Applies to