Interface ICloneStrategy<T>
Represents an interface for resolving deep copy operations for objects of type T.
public interface ICloneStrategy<T>
Type Parameters
TThe type of the object to be deep-copied.
- Extension Methods
Remarks
Please ensure that it implements deep copy logic for all nested objects, not just shallow copies.
Methods
CloneObject(T)
Clones the specified object of type T.
T? CloneObject(T item)
Parameters
itemTThe object to clone.
Returns
- T
A deep copy of the object.