UnityObjectExtensions.IsNotNull<T>(T) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.