C# Class NZBDash.Common.Mapping.MappingHelper

Exibir arquivo Open project: NZBDash/NZBDash Class Usage Examples

Public Methods

Method Description
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"

Private Methods

Method Description
GetPropValue ( object src, string propName ) : object
SetPropValue ( object target, object value, string propName ) : void

Method Details

MapMatchingProperties() public static method

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.
return void