UnityObjectExtensions.IsNull<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 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.