C# Класс SfSdk.PropertiesMapper

A class to map properties from one object to another via reflection.
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

CopyPropertiesFrom() публичный статический Метод

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
Результат void

CopyPropertiesFrom() публичный статический Метод

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
Результат void

CopyPropertiesTo() публичный статический Метод

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
Результат void

CopyPropertiesTo() публичный статический Метод

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
Результат void