Unsafe.AreSame<T>(T, 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.
Détermine si les pointeurs managés spécifiés pointent vers le même emplacement.
public:
generic <typename T>
static bool AreSame(T % left, T % right);
public static bool AreSame<T>(ref readonly T left, ref readonly T right) where T : allows ref struct;
public static bool AreSame<T>(ref T left, ref T right);
public static bool AreSame<T>(ref readonly T left, ref readonly T right);
static member AreSame : 'T * 'T -> bool
Public Shared Function AreSame(Of T) (ByRef left As T, ByRef right As T) As Boolean
Paramètres de type
- T
Type élémental des pointeurs managés.
Paramètres
- left
- T
Premier pointeur managé à comparer.
- right
- T
Deuxième pointeur managé à comparer.
Retours
true si left et right pointent vers le même emplacement ; sinon, false.