class MAGES::Editor::CloneMethodAttribute¶
Overview¶
An attribute for specifying a static class that can clone a type. More…
class CloneMethodAttribute: public System.Attribute { public: // properties System.Type ClonedType; // methods CloneMethodAttribute(System.Type type); static bool TryClone(object o, out object result); };
Detailed Documentation¶
An attribute for specifying a static class that can clone a type.
Properties¶
System.Type ClonedType
Gets the type that can be cloned.
Methods¶
CloneMethodAttribute(System.Type type)
Initializes a new instance of the CloneMethodAttribute class.
Parameters:
type |
The cloned type. |
static bool TryClone(object o, out object result)
Shorthand for finding, and calling the clone method.
Parameters:
o |
The object to clone. |
result |
The resulting duplicate object. |
Returns:
Whether or not the object could be cloned.