Unsafe.IsNullRef<T>(T) 方法   
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
确定指向类型的 T 值的给定托管指针是否为 null 引用。
public:
generic <typename T>
 static bool IsNullRef(T % source);
	public static bool IsNullRef<T>(ref readonly T source) where T : allows ref struct;
	public static bool IsNullRef<T>(ref T source);
	public static bool IsNullRef<T>(ref readonly T source);
	static member IsNullRef : 'T -> bool
	Public Shared Function IsNullRef(Of T) (ByRef source As T) As Boolean
    类型参数
- T
 
托管指针的元素类型。
参数
- source
 - T
 
指向检查的托管指针。
返回
              true 如果 source 为 null 引用,则为 ;否则为 false。
注解
此检查在概念上类似于 (void*)(&source) == nullptr。