Unsafe.NullRef<T> Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Retourne un pointeur managé Null vers une valeur de type 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
Paramètres de type
- T
Type élémentaire du pointeur managé.
Retours
Pointeur managé Null vers une valeur de type T.
Remarques
La valeur de retour est conceptuellement similaire à ref ((T)null).