Guard.IsNotDefault<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 not default
.
public static void IsNotDefault<T> (T value, string name) where T : struct;
static member IsNotDefault : 'T * string -> unit (requires 'T : struct)
Public Shared Sub IsNotDefault(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 default
.