C# Class ObjectExtensions, code

Show file Open project: shendongnian/code Class Usage Examples

Public Methods

Method Description
CopyFrom ( object Instance, object Source ) : void
CopyFrom ( object Instance, object Source, IEnumerable, IgnoreProperties ) : void
CopyFrom ( object Instance, object Source, bool ThrowOnPropertyMismatch, IEnumerable, IgnoreProperties ) : void
GetVariableName ( obj ) : string

Method Details

CopyFrom() public static method

public static CopyFrom ( object Instance, object Source ) : void
Instance object
Source object
return void

CopyFrom() public static method

public static CopyFrom ( object Instance, object Source, IEnumerable, IgnoreProperties ) : void
Instance object
Source object
IgnoreProperties IEnumerable,
return void

CopyFrom() public static method

public static CopyFrom ( object Instance, object Source, bool ThrowOnPropertyMismatch, IEnumerable, IgnoreProperties ) : void
Instance object
Source object
ThrowOnPropertyMismatch bool
IgnoreProperties IEnumerable,
return void

GetVariableName() public static method

public static GetVariableName ( obj ) : string
return string