Guard.IsDefault<T>(T, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
.