Table of Contents

Interface IDuplicate

Namespace
Hi.Common
Assembly
HiGeom.dll

Interface for objects that support deep cloning/duplication.

public interface IDuplicate
Extension Methods

Remarks

Unlike ICloneable, which is typically used for shallow copying of simple objects, IDuplicate is designed for deep copying of complex objects with nested references. Implementations should ensure that all nested objects are properly duplicated.

Methods

Duplicate(params object[])

Creates a deep copy of the object, excluding any source file references.

object Duplicate(params object[] res)

Parameters

res object[]

Optional parameters that may be needed during the duplication process

Returns

object

A new instance that is a deep copy of the original object