C# Class Castle.Components.DictionaryAdapter.PropertyDescriptor

Inheritance: IDictionaryKeyBuilder, IDictionaryPropertyGetter, IDictionaryPropertySetter
Show file Open project: Jarvin-Guan/CleanAOP Class Usage Examples

Public Methods

Method Description
AddBehavior ( ) : PropertyDescriptor

Adds the behaviors.

AddBehaviors ( ) : PropertyDescriptor

Adds the behaviors from the builders.

AddBehaviors ( IEnumerable behaviors ) : PropertyDescriptor

Adds the behaviors.

AddGetter ( ) : PropertyDescriptor

Adds the dictionary getter.

AddGetters ( IEnumerable gets ) : PropertyDescriptor

Adds the dictionary getters.

AddKeyBuilder ( ) : PropertyDescriptor

Adds the key builder.

AddKeyBuilders ( IEnumerable builders ) : PropertyDescriptor

Adds the key builders.

AddSetter ( ) : PropertyDescriptor

Adds the dictionary setter.

AddSetters ( IEnumerable sets ) : PropertyDescriptor

Adds the dictionary setters.

Copy ( ) : IDictionaryBehavior

Copies the PropertyDescriptor

CopyBehaviors ( PropertyDescriptor other ) : PropertyDescriptor

Copies the behaviors to the other PropertyDescriptor

CopyGetters ( PropertyDescriptor other ) : PropertyDescriptor

Copies the property getters to the other PropertyDescriptor

CopyKeyBuilders ( PropertyDescriptor other ) : PropertyDescriptor

Copies the key builders to the other PropertyDescriptor

CopySetters ( PropertyDescriptor other ) : PropertyDescriptor

Copies the property setters to the other PropertyDescriptor

GetKey ( IDictionaryAdapter dictionaryAdapter, String key, PropertyDescriptor descriptor ) : string

Gets the key.

GetPropertyValue ( IDictionaryAdapter dictionaryAdapter, string key, object storedValue, PropertyDescriptor descriptor, bool ifExists ) : object

Gets the property value.

PropertyDescriptor ( ) : System

Initializes an empty PropertyDescriptor class.

PropertyDescriptor ( PropertyDescriptor source, bool copyBehaviors ) : System

Copies an existinginstance of the PropertyDescriptor class.

PropertyDescriptor ( PropertyInfo property, object behaviors ) : System

Initializes a new instance of the PropertyDescriptor class.

SetPropertyValue ( IDictionaryAdapter dictionaryAdapter, string key, object &value, PropertyDescriptor descriptor ) : bool

Sets the property value.

Protected Methods

Method Description
InternalAddBehavior ( IDictionaryBehavior behavior ) : void
PropertyDescriptor ( object behaviors ) : System

Initializes a new instance PropertyDescriptor class.

Private Methods

Method Description
ObtainTypeConverter ( ) : void

Method Details

AddBehavior() public method

Adds the behaviors.
public AddBehavior ( ) : PropertyDescriptor
return PropertyDescriptor

AddBehaviors() public method

Adds the behaviors from the builders.
public AddBehaviors ( ) : PropertyDescriptor
return PropertyDescriptor

AddBehaviors() public method

Adds the behaviors.
public AddBehaviors ( IEnumerable behaviors ) : PropertyDescriptor
behaviors IEnumerable
return PropertyDescriptor

AddGetter() public method

Adds the dictionary getter.
public AddGetter ( ) : PropertyDescriptor
return PropertyDescriptor

AddGetters() public method

Adds the dictionary getters.
public AddGetters ( IEnumerable gets ) : PropertyDescriptor
gets IEnumerable The getters.
return PropertyDescriptor

AddKeyBuilder() public method

Adds the key builder.
public AddKeyBuilder ( ) : PropertyDescriptor
return PropertyDescriptor

AddKeyBuilders() public method

Adds the key builders.
public AddKeyBuilders ( IEnumerable builders ) : PropertyDescriptor
builders IEnumerable The builders.
return PropertyDescriptor

AddSetter() public method

Adds the dictionary setter.
public AddSetter ( ) : PropertyDescriptor
return PropertyDescriptor

AddSetters() public method

Adds the dictionary setters.
public AddSetters ( IEnumerable sets ) : PropertyDescriptor
sets IEnumerable The setters.
return PropertyDescriptor

Copy() public method

Copies the PropertyDescriptor
public Copy ( ) : IDictionaryBehavior
return IDictionaryBehavior

CopyBehaviors() public method

Copies the behaviors to the other PropertyDescriptor
public CopyBehaviors ( PropertyDescriptor other ) : PropertyDescriptor
other PropertyDescriptor
return PropertyDescriptor

CopyGetters() public method

Copies the property getters to the other PropertyDescriptor
public CopyGetters ( PropertyDescriptor other ) : PropertyDescriptor
other PropertyDescriptor
return PropertyDescriptor

CopyKeyBuilders() public method

Copies the key builders to the other PropertyDescriptor
public CopyKeyBuilders ( PropertyDescriptor other ) : PropertyDescriptor
other PropertyDescriptor
return PropertyDescriptor

CopySetters() public method

Copies the property setters to the other PropertyDescriptor
public CopySetters ( PropertyDescriptor other ) : PropertyDescriptor
other PropertyDescriptor
return PropertyDescriptor

GetKey() public method

Gets the key.
public GetKey ( IDictionaryAdapter dictionaryAdapter, String key, PropertyDescriptor descriptor ) : string
dictionaryAdapter IDictionaryAdapter The dictionary adapter.
key String The key.
descriptor PropertyDescriptor The descriptor.
return string

GetPropertyValue() public method

Gets the property value.
public GetPropertyValue ( IDictionaryAdapter dictionaryAdapter, string key, object storedValue, PropertyDescriptor descriptor, bool ifExists ) : object
dictionaryAdapter IDictionaryAdapter The dictionary adapter.
key string The key.
storedValue object The stored value.
descriptor PropertyDescriptor The descriptor.
ifExists bool true if return only existing.
return object

InternalAddBehavior() protected method

protected InternalAddBehavior ( IDictionaryBehavior behavior ) : void
behavior IDictionaryBehavior
return void

PropertyDescriptor() public method

Initializes an empty PropertyDescriptor class.
public PropertyDescriptor ( ) : System
return System

PropertyDescriptor() public method

Copies an existinginstance of the PropertyDescriptor class.
public PropertyDescriptor ( PropertyDescriptor source, bool copyBehaviors ) : System
source PropertyDescriptor
copyBehaviors bool
return System

PropertyDescriptor() public method

Initializes a new instance of the PropertyDescriptor class.
public PropertyDescriptor ( PropertyInfo property, object behaviors ) : System
property System.Reflection.PropertyInfo The property.
behaviors object The property behaviors.
return System

PropertyDescriptor() protected method

Initializes a new instance PropertyDescriptor class.
protected PropertyDescriptor ( object behaviors ) : System
behaviors object
return System

SetPropertyValue() public method

Sets the property value.
public SetPropertyValue ( IDictionaryAdapter dictionaryAdapter, string key, object &value, PropertyDescriptor descriptor ) : bool
dictionaryAdapter IDictionaryAdapter The dictionary adapter.
key string The key.
value object The value.
descriptor PropertyDescriptor The descriptor.
return bool