Table of Contents

Method IsAddressLessThaOrEqual

Namespace
Zyl.VectorTraits.Impl.Util
Assembly
VectorTraits.dll

IsAddressLessThaOrEqual<T>(ref T, ref T)

Determines whether the memory address referenced by left is less or equal than the memory address referenced by right (返回一个值,该值指示指定的托管指针是否小于另一个指定的托管指针).

public static bool IsAddressLessThaOrEqual<T>(ref T left, ref T right)

Parameters

left T

The first managed pointer to compare (要比较的第一个托管指针).

right T

The second managed pointer to compare (要比较的第二个托管指针).

Returns

bool

true if is less or equal; otherwise, false (小于等于时返回 true; 否则返回 false).

Type Parameters

T

The elemental type of the managed pointer (托管指针的元素类型).

Remarks

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

See Also
IsAddressGreaterThan<T>(ref readonly T, ref readonly T)