UnityObjectExtensions.IsNotNull<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 IsNotNull(T interface);
public static bool IsNotNull<T> (this T interface) where T : class;
static member IsNotNull : 'T -> bool (requires 'T : null)
<Extension()>
Public Function IsNotNull(Of T As Class) (interface As T) As Boolean

Type Parameters

T

Parameters

interface
T

Returns

Falseif either the managed or native object is null, true otherwise.

Applies to