Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
SiliconStudio.Presentation.Extensions.ObjectExtensions Class Reference

Static Public Member Functions

static T SafeArgument< T > (this T obj, string argumentName)
 This method checks if the given this object is null, and throws a ArgumentNullException with the given argument name if so. It returns the given this object. More...
 
static object MemberwiseClone (this object instance)
 
static T MemberwiseClone< T > (this T instance)
 

Detailed Description

Definition at line 10 of file ObjectExtensions.cs.

Member Function Documentation

static object SiliconStudio.Presentation.Extensions.ObjectExtensions.MemberwiseClone ( this object  instance)
static

Definition at line 30 of file ObjectExtensions.cs.

Definition at line 52 of file ObjectExtensions.cs.

static T SiliconStudio.Presentation.Extensions.ObjectExtensions.SafeArgument< T > ( this T  obj,
string  argumentName 
)
static

This method checks if the given this object is null, and throws a ArgumentNullException with the given argument name if so. It returns the given this object.

Template Parameters
TThe type of object to test.
Parameters
objThe object to test.
argumentNameThe name of the argument, in case an ArgumentNullException must be thrown.
Returns
The given object.

This method can be used to test for null argument when forwarding members of the object to the base or this constructor.

Type Constraints
T :class 

Definition at line 23 of file ObjectExtensions.cs.


The documentation for this class was generated from the following file: