Guard.IsNotNullOrEmpty(String, String) Method

Definition

Asserts that the input String instance must not be null or empty.

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

Parameters

text
String

The input String instance to test.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if text is null.

Thrown if text is empty.

Applies to