Guard.IsNullOrWhiteSpace(String, String) Method

Definition

Asserts that the input String instance must be null or whitespace.

public static void IsNullOrWhiteSpace (string? text, string name);
static member IsNullOrWhiteSpace : string * string -> unit
Public Shared Sub IsNullOrWhiteSpace (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 neither null nor whitespace.

Applies to