Language

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

Definition

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

public:
generic <typename T>
 static bool IsAddressGreaterThanOrEqualTo(T % left, T % right);
public static bool IsAddressGreaterThanOrEqualTo<T>(ref readonly T left, ref readonly T right) where T : allows ref struct;
static member IsAddressGreaterThanOrEqualTo : 'T * 'T -> bool
Public Shared Function IsAddressGreaterThanOrEqualTo(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 greater than or equal to right; otherwise, false.

Remarks

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

Applies to