Class CloneableCloneStrategy<T>
Provides a deep copy implementation for objects of type T
that implement the ICloneable interface.
public sealed class CloneableCloneStrategy<T> : ICloneStrategy<T> where T : ICloneable
Type Parameters
T
The type of the object to be deep-copied, which must implement the ICloneable interface.
- Inheritance
-
CloneableCloneStrategy<T>
- Implements
- Inherited Members
- Extension Methods
Constructors
CloneableCloneStrategy()
public CloneableCloneStrategy()
Fields
Instance
Represents a static field providing an instance of CloneableCloneStrategy<T>.
public static readonly ICloneStrategy<T> Instance
Field Value
Methods
CloneObject(T)
public T? CloneObject(T item)
Parameters
item
T
Returns
- T