Table of Contents

Interface ICopyable<TTarget>

Namespace
Garyon.Objects
Assembly
Garyon.dll

Denotes that an object is copyable into a target instance, usually of another type.

public interface ICopyable<in TTarget>

Type Parameters

TTarget

The 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

target TTarget

The 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.