Show / Hide Table of Contents

Class ObjectExtensions

Unity Object extension methods.

Inheritance
System.Object
ObjectExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: StansAssets.Foundation.Extensions
Assembly: cs.temp.dll.dll
Syntax
public static class ObjectExtensions

Methods

IsNotNull(Object)

Performs a TRUE null-check. See http://answers.unity.com/answers/1224404/view.html

Declaration
public static bool IsNotNull(this object obj)
Parameters
Type Name Description
System.Object obj

An object to check.

Returns
Type Description
System.Boolean

Returns false if object is null, true otherwise.

IsNull(Object)

Performs a TRUE null-check. See http://answers.unity.com/answers/1224404/view.html

Declaration
public static bool IsNull(this object obj)
Parameters
Type Name Description
System.Object obj

An object to check.

Returns
Type Description
System.Boolean

Returns true if object is null, false otherwise.

In This Article
Back to top Generated by DocFX