VegaRise.NET
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)

VegaRise.NET

Sign In

Welcome back. Please sign in to your account.

Forgot password?
or

Don't have an account? Create an account

By signing in, you agree to our Terms of Service and Privacy Policy.