Unsafe.IsAddressLessThanOrEqualTo<T>(T, T) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
The elemental type of the managed pointer.
Parameters
- left
- T
The first managed pointer to compare.
- right
- T
The second managed pointer to compare.
Returns
true if left is less than or equal to right; otherwise, false.
Remarks
This check is conceptually similar to "(void*)(&left) <= (void*)(&right)".