Freigeben über


Assumes.Null Method

Definition

Overloads

Null<T>(Nullable<T>)

Throws Microsoft.Assumes.InternalErrorException if the specified value is not null.

Null<T>(T)

Throws Microsoft.Assumes.InternalErrorException if the specified value is not null.

Null<T>(Nullable<T>)

Throws Microsoft.Assumes.InternalErrorException if the specified value is not null.

public:
generic <typename T>
 where T : value class static void Null(Nullable<T> value);
[System.Diagnostics.DebuggerStepThrough]
[System.Runtime.TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
public static void Null<T> (T? value) where T : struct;
[<System.Diagnostics.DebuggerStepThrough>]
[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")>]
static member Null : Nullable<'T (requires 'T : struct)> -> unit (requires 'T : struct)
Public Shared Sub Null(Of T As Structure) (value As Nullable(Of T))

Type Parameters

T

The type of value to test.

Parameters

value
Nullable<T>
Attributes

Applies to

Null<T>(T)

Throws Microsoft.Assumes.InternalErrorException if the specified value is not null.

public:
generic <typename T>
 where T : class static void Null(T value);
[System.Diagnostics.DebuggerStepThrough]
[System.Runtime.TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
public static void Null<T> (T? value) where T : class;
[<System.Diagnostics.DebuggerStepThrough>]
[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")>]
static member Null : 'T -> unit (requires 'T : null)
Public Shared Sub Null(Of T As Class) (value As T)

Type Parameters

T

The type of value to test.

Parameters

value
T
Attributes

Applies to