Back to BaseElement
CloneObject``1Method
Definition
- Namespace
- DOM.Abstracts
- Assembly
- DOM.dll
Creates a new instance of the same runtime type as and copies all readable/writable public properties. original
T CloneObject``1(` original)Parameters
- original
- The element to clone. Cannot be .
Returns
T
A shallow copy of . original
Exceptions
- System.ArgumentNullException: Thrown when is . original
Remarks
The clone is created via, so the runtime type must expose a parameterless constructor. Reference-typed properties are shared between the two instances (shallow copy). CreateInstance(Type)