Unsafe.AreSame<T>(T, T) Method

Definition

Determines whether the specified references point to the same location.

public:
generic <typename T>
 static bool AreSame(T % left, T % right);
public static bool AreSame<T> (ref T left, ref T right);
static member AreSame : 'T * 'T -> bool
Public Shared Function AreSame(Of T) (ByRef left As T, ByRef right As T) As Boolean

Type Parameters

T

The type of reference.

Parameters

left
T

The first reference to compare.

right
T

The second reference to compare.

Returns

Boolean

true if left and right point to the same location; otherwise, false.

Applies to