Table of Contents

Method IsNullRef

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

IsNullRef<T>(ref T)

Determines if a given managed pointer to a value of type T is a null reference (确定指向类型的 T 值的给定托管指针是否为 null 引用).

[Obsolete("Please change to use the `Unsafe.IsNullRef` method.")]
public static bool IsNullRef<T>(ref T source)

Parameters

source T

The managed pointer to check (指向检查的托管指针).

Returns

bool

true if source is a null reference; otherwise, false.

Type Parameters

T

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

Remarks

Obsolete: Please change to use the Unsafe.IsNullRef method.

See Also
IsNullRef<T>(ref readonly T)