C# Class Apache.NMS.ActiveMQ.Util.IntrospectionSupport

Utility class used to provide conveince methods that apply named property settings to objects.
Datei anzeigen Open project: ThorTech/apache-nms

Public Methods

Method Description
SetProperties ( object target, StringDictionary map ) : void

Sets the public properties of a target object using a string map. This method uses .Net reflection to identify public properties of the target object matching the keys from the passed map.

SetProperties ( object target, StringDictionary map, string prefix ) : void

Sets the public properties of a target object using a string map. This method uses .Net reflection to identify public properties of the target object matching the keys from the passed map.

Private Methods

Method Description
FindPropertyInfo ( object target, string name ) : MemberInfo
GetUnderlyingObject ( MemberInfo member, object target ) : object

Method Details

SetProperties() public static method

Sets the public properties of a target object using a string map. This method uses .Net reflection to identify public properties of the target object matching the keys from the passed map.
public static SetProperties ( object target, StringDictionary map ) : void
target object The object whose properties will be set.
map System.Collections.Specialized.StringDictionary Map of key/value pairs.
return void

SetProperties() public static method

Sets the public properties of a target object using a string map. This method uses .Net reflection to identify public properties of the target object matching the keys from the passed map.
public static SetProperties ( object target, StringDictionary map, string prefix ) : void
target object The object whose properties will be set.
map System.Collections.Specialized.StringDictionary Map of key/value pairs.
prefix string Key value prefix. This is prepended to the property name /// before searching for a matching key value.
return void