ObjectCopy

Class ObjectCopy

This class exposes cloning functionality for objects.

Inheritance
ObjectCopy
Namespace: ETLBox
Assembly: ETLBox.dll
Syntax
    public static class ObjectCopy

Methods

Clone<T>(T)

Declaration
    public static T Clone<T>(T row)
Parameters
TypeNameDescription
Trow
Returns
TypeDescription
T
Type Parameters
NameDescription
T

TryCreateShallowCopyOfPublicProps<T>(T)

Declaration
    public static T TryCreateShallowCopyOfPublicProps<T>(T source) where T : class
Parameters
TypeNameDescription
Tsource
Returns
TypeDescription
T
Type Parameters
NameDescription
T

TryCreateShallowCopyOfPublicProps<TIn, TOut>(TIn)

Declaration
    public static TOut TryCreateShallowCopyOfPublicProps<TIn, TOut>(TIn source) where TOut : class
Parameters
TypeNameDescription
TInsource
Returns
TypeDescription
TOut
Type Parameters
NameDescription
TIn
TOut