C# Класс NZBDash.Common.Mapping.MappingHelper

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
MapMatchingProperties ( object target, object source ) : void

Maps the matching properties from one type to the other by name.

If the name does not match then it will not be mapped.

This class was intended to be used in a class that derives from "IValueInjection"

Приватные методы

Метод Описание
GetPropValue ( object src, string propName ) : object
SetPropValue ( object target, object value, string propName ) : void

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

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

Maps the matching properties from one type to the other by name.

If the name does not match then it will not be mapped.

This class was intended to be used in a class that derives from "IValueInjection"

If there is no cast type then this will be thrown
public static MapMatchingProperties ( object target, object source ) : void
target object The target object.
source object The source object.
Результат void