C# Class NZBDash.Common.Mapping.MappingHelper

Afficher le fichier Open project: NZBDash/NZBDash Class Usage Examples

Méthodes publiques

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

Méthode Description
GetPropValue ( object src, string propName ) : object
SetPropValue ( object target, object value, string propName ) : void

Method Details

MapMatchingProperties() public static méthode

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