Click or drag to resize

CopyHelperGetCopyT Method

Gets a copy of an instance, either by using ICopyFrom or ICloneable interface.

Namespace: Altaxo
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static T GetCopy<T>(
	T to,
	T from
)
where T : ICloneable

Parameters

to  T
The value of the variable to copy to.
from  T
The instance to copy from.

Type Parameters

T
The type of the instance to copy.

Return Value

T
The copied instance. It might be the same instance as provided in to, if the interface ICopyFrom was used for copying. If the ICloneable interface was used for copying, the returned instance is different from to.
See Also