Unsafe.IsNullRef<T>(T) 메서드

정의

형식 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

확인할 관리되는 포인터입니다.

반품

null 참조이면 /&a0>이고, 그렇지 않으면 .입니다.

설명

이 검사는 개념적으로 (void*)(&source) == nullptr.

적용 대상