|
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) |
|
Definition at line 10 of file ObjectExtensions.cs.
static object SiliconStudio.Presentation.Extensions.ObjectExtensions.MemberwiseClone |
( |
this object |
instance | ) |
|
|
static |
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
-
T | The type of object to test. |
- Parameters
-
obj | The object to test. |
argumentName | The 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.
Definition at line 23 of file ObjectExtensions.cs.
The documentation for this class was generated from the following file:
- D:/Projects/Bitbucket Hosting/DoxygenFilesAndSources/Paradox v1.0.0 beta06/sources/common/presentation/SiliconStudio.Presentation/Extensions/ObjectExtensions.cs