Guard.IsDefault<T>(T, String) Method

Definition

Asserts that the input value is default.

public static void IsDefault<T> (T value, string name) where T : struct;
static member IsDefault : 'T * string -> unit (requires 'T : struct)
Public Shared Sub IsDefault(Of T As Structure) (value As T, name As String)

Type Parameters

T

The type of struct value type being tested.

Parameters

value
T

The input value to test.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if value is not default.

Applies to