UnityObjectExtensions.IsNull<T>(T) Method

Definition

Tests if an interface is null, taking potential UnityEngine.Object derived class implementers into account which require their overridden operators to be called.

public:
generic <typename T>
 where T : class[System::Runtime::CompilerServices::Extension]
 static bool IsNull(T interface);
public static bool IsNull<T> (this T interface) where T : class;
static member IsNull : 'T -> bool (requires 'T : null)
<Extension()>
Public Function IsNull(Of T As Class) (interface As T) As Boolean

Type Parameters

T

Parameters

interface
T

Returns

True if either the managed or native object is null, false otherwise.

Applies to