C# Class SfSdk.PropertiesMapper

A class to map properties from one object to another via reflection.
Afficher le fichier Open project: ebeeb/SfSdk

Méthodes publiques

Méthode 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 méthode

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
Résultat void

CopyPropertiesFrom() public static méthode

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
Résultat void

CopyPropertiesTo() public static méthode

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
Résultat void

CopyPropertiesTo() public static méthode

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
Résultat void