DeepClone extension.
More...
DeepClone extension.
Definition at line 77 of file Node.Clone.Extension.cs.
static T SiliconStudio.Shaders.Ast.DeepCloner.DeepClone< T > |
( |
this T |
obj, |
|
|
CloneContext |
context = null |
|
) |
| |
|
static |
Clones deeply the specified object. See remarks.
- Template Parameters
-
T | Type of the object to clone |
- Parameters
-
obj | The object instance to clone recursively. |
context | The context dictionary to use while cloning this object. |
- Returns
- A cloned instance of the object
In order to be cloneable, all objects and sub-objects are required to provide a public parameter-less constructor.
Definition at line 129 of file Node.Clone.Extension.cs.
static void SiliconStudio.Shaders.Ast.DeepCloner.DeepCollect< T > |
( |
T |
obj, |
|
|
CloneContext |
context |
|
) |
| |
|
static |
Recursively collects all object references and fill the context with [key] object => [value] object (self referencing).
- Template Parameters
-
T | Type of the object to collect all object references |
- Parameters
-
obj | The object instance to collect object references recursively. |
context | The context dictionary to fill with collected object references while cloning this object. |
- Exceptions
-
System.ArgumentNullException | context |
Definition at line 151 of file Node.Clone.Extension.cs.
The documentation for this class was generated from the following file:
- D:/Projects/Bitbucket Hosting/DoxygenFilesAndSources/Paradox v1.0.0 beta06/sources/common/shaders/SiliconStudio.Shaders/Ast/Node.Clone.Extension.cs