Edit

Share via


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

Definition

Determines whether the memory address referenced by left is less than or equal to the memory address referenced by right.

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

Type Parameters

T

Parameters

left
T
right
T

Returns

Remarks

This check is conceptually similar to "(void*)(&left) <= (void*)(&right)".

Applies to