Interface ICopyable<TTarget>
Denotes that an object is copyable into a target instance, usually of another type.
public interface ICopyable<in TTarget>
Type Parameters
TTargetThe type of the object to copy onto.
- Extension Methods
Methods
CopyTo(TTarget)
Copies the object into a target object. This method is intended to copy data that the target object supports and requires.
void CopyTo(TTarget target)
Parameters
targetTTargetThe target object that will have its state overwritten with this object's data.
Remarks
This can be useful for mapping objects like DTOs into entities, or other likewise correlated objects.