Unsafe.NullRef<T> Metodo

Definizione

Restituisce un puntatore gestito Null a un valore di tipo T.

public:
generic <typename T>
 static T % NullRef();
public static ref T NullRef<T>() where T : allows ref struct;
public static ref T NullRef<T>();
static member NullRef : unit -> 'T
Public Shared Function NullRef(Of T) () As T

Parametri di tipo

T

Tipo elementale del puntatore gestito.

Valori restituiti

T

Puntatore gestito Null a un valore di tipo T.

Commenti

Il valore restituito è concettualmente simile a ref ((T)null).

Si applica a