C# Class SfSdk.PropertiesMapper

A class to map properties from one object to another via reflection.
Mostrar archivo Open project: ebeeb/SfSdk

Public Methods

Method Description
CopyPropertiesFrom ( this to, object from ) : void

Copies all the properties of the "from" object to this object if they exist.

CopyPropertiesFrom ( this to, object from, string excludedProperties ) : void

Copies all the properties of the "from" object to this object if they exist.

CopyPropertiesTo ( this from, object to ) : void

Copies all the properties of this object to the "to" object

CopyPropertiesTo ( this from, object to, string excludedProperties ) : void

Copies all the properties of this object to the "to" object

Method Details

CopyPropertiesFrom() public static method

Copies all the properties of the "from" object to this object if they exist.
public static CopyPropertiesFrom ( this to, object from ) : void
to this The object in which the properties are copied
from object The object which is used as a source
return void

CopyPropertiesFrom() public static method

Copies all the properties of the "from" object to this object if they exist.
public static CopyPropertiesFrom ( this to, object from, string excludedProperties ) : void
to this The object in which the properties are copied
from object The object which is used as a source
excludedProperties string Exclude these properties from the copy
return void

CopyPropertiesTo() public static method

Copies all the properties of this object to the "to" object
public static CopyPropertiesTo ( this from, object to ) : void
from this The object which is used as a source
to object The object in which the properties are copied
return void

CopyPropertiesTo() public static method

Copies all the properties of this object to the "to" object
public static CopyPropertiesTo ( this from, object to, string excludedProperties ) : void
from this The object which is used as a source
to object The object in which the properties are copied
excludedProperties string Exclude these properties from the copy
return void