C# Class Dynamitey.DynamicObjects.BaseDictionary

Base class of Expando-Type objects
Inheritance: BaseObject, INotifyPropertyChanged
Datei anzeigen Open project: ekonbenefits/dynamitey

Protected Properties

Property Type Description
_dictionary object>.IDictionary

Public Methods

Method Description
Add ( object>.KeyValuePair item ) : void

Adds the specified item.

Add ( string key, object value ) : void

Adds the specified key.

Contains ( object>.KeyValuePair item ) : bool

Determines whether [contains] [the specified item].

ContainsKey ( string key ) : bool

Determines whether the specified key contains key.

CopyTo ( object>.KeyValuePair array, int arrayIndex ) : void

Copies to.

Equals ( Dictionary other ) : bool

Equalses the specified other.

Equals ( object obj ) : bool

Determines whether the specified System.Object is equal to this instance.

GetDynamicMemberNames ( ) : IEnumerable

Returns the enumeration of all dynamic member names.

GetHashCode ( ) : int

Returns a hash code for this instance.

Remove ( object>.KeyValuePair item ) : bool

Removes the specified item.

Remove ( string key ) : bool

Removes the specified key.

ToString ( ) : string

Returns a System.String that represents this instance.

TryGetMember ( GetMemberBinder binder, object &result ) : bool

Provides the implementation for operations that get member values. Classes derived from the T:System.Dynamic.DynamicObject class can override this method to specify dynamic behavior for operations such as getting a value for a property.

TryGetValue ( string key, object &value ) : bool

Tries the get value.

TryInvokeMember ( InvokeMemberBinder binder, object args, object &result ) : bool

Provides the implementation for operations that invoke a member. Classes derived from the T:System.Dynamic.DynamicObject class can override this method to specify dynamic behavior for operations such as calling a method.

TrySetMember ( SetMemberBinder binder, object value ) : bool

Provides the implementation for operations that set member values. Classes derived from the T:System.Dynamic.DynamicObject class can override this method to specify dynamic behavior for operations such as setting a value for a property.

Protected Methods

Method Description
BaseDictionary ( object>.IEnumerable dict = null ) : System

Initializes a new instance of the Dictionary class.

OnPropertyChanged ( string key ) : void

Called when [property changed].

SetProperty ( string key, object value ) : void

Sets the property.

Method Details

Add() public method

Adds the specified item.
public Add ( object>.KeyValuePair item ) : void
item object>.KeyValuePair The item.
return void

Add() public method

Adds the specified key.
public Add ( string key, object value ) : void
key string The key.
value object The value.
return void

BaseDictionary() protected method

Initializes a new instance of the Dictionary class.
protected BaseDictionary ( object>.IEnumerable dict = null ) : System
dict object>.IEnumerable The dict.
return System

Contains() public method

Determines whether [contains] [the specified item].
public Contains ( object>.KeyValuePair item ) : bool
item object>.KeyValuePair The item.
return bool

ContainsKey() public method

Determines whether the specified key contains key.
public ContainsKey ( string key ) : bool
key string The key.
return bool

CopyTo() public method

Copies to.
public CopyTo ( object>.KeyValuePair array, int arrayIndex ) : void
array object>.KeyValuePair The array.
arrayIndex int Index of the array.
return void

Equals() public method

Equalses the specified other.
public Equals ( Dictionary other ) : bool
other Dictionary The other.
return bool

Equals() public method

Determines whether the specified System.Object is equal to this instance.
public Equals ( object obj ) : bool
obj object The to compare with this instance.
return bool

GetDynamicMemberNames() public method

Returns the enumeration of all dynamic member names.
public GetDynamicMemberNames ( ) : IEnumerable
return IEnumerable

GetHashCode() public method

Returns a hash code for this instance.
public GetHashCode ( ) : int
return int

OnPropertyChanged() protected method

Called when [property changed].
protected OnPropertyChanged ( string key ) : void
key string The key.
return void

Remove() public method

Removes the specified item.
public Remove ( object>.KeyValuePair item ) : bool
item object>.KeyValuePair The item.
return bool

Remove() public method

Removes the specified key.
public Remove ( string key ) : bool
key string The key.
return bool

SetProperty() protected method

Sets the property.
protected SetProperty ( string key, object value ) : void
key string The key.
value object The value.
return void

ToString() public method

Returns a System.String that represents this instance.
public ToString ( ) : string
return string

TryGetMember() public method

Provides the implementation for operations that get member values. Classes derived from the T:System.Dynamic.DynamicObject class can override this method to specify dynamic behavior for operations such as getting a value for a property.
public TryGetMember ( GetMemberBinder binder, object &result ) : bool
binder System.Dynamic.GetMemberBinder Provides information about the object that called the dynamic operation. The binder.Name property provides the name of the member on which the dynamic operation is performed. For example, for the Console.WriteLine(sampleObject.SampleProperty) statement, where sampleObject is an instance of the class derived from the class, binder.Name returns "SampleProperty". The binder.IgnoreCase property specifies whether the member name is case-sensitive.
result object The result of the get operation. For example, if the method is called for a property, you can assign the property value to .
return bool

TryGetValue() public method

Tries the get value.
public TryGetValue ( string key, object &value ) : bool
key string The key.
value object The value.
return bool

TryInvokeMember() public method

Provides the implementation for operations that invoke a member. Classes derived from the T:System.Dynamic.DynamicObject class can override this method to specify dynamic behavior for operations such as calling a method.
public TryInvokeMember ( InvokeMemberBinder binder, object args, object &result ) : bool
binder System.Dynamic.InvokeMemberBinder Provides information about the dynamic operation. The binder.Name property provides the name of the member on which the dynamic operation is performed. For example, for the statement sampleObject.SampleMethod(100), where sampleObject is an instance of the class derived from the class, binder.Name returns "SampleMethod". The binder.IgnoreCase property specifies whether the member name is case-sensitive.
args object The arguments that are passed to the object member during the invoke operation. For example, for the statement sampleObject.SampleMethod(100), where sampleObject is derived from the class, is equal to 100.
result object The result of the member invocation.
return bool

TrySetMember() public method

Provides the implementation for operations that set member values. Classes derived from the T:System.Dynamic.DynamicObject class can override this method to specify dynamic behavior for operations such as setting a value for a property.
public TrySetMember ( SetMemberBinder binder, object value ) : bool
binder System.Dynamic.SetMemberBinder Provides information about the object that called the dynamic operation. The binder.Name property provides the name of the member to which the value is being assigned. For example, for the statement sampleObject.SampleProperty = "Test", where sampleObject is an instance of the class derived from the class, binder.Name returns "SampleProperty". The binder.IgnoreCase property specifies whether the member name is case-sensitive.
value object The value to set to the member. For example, for sampleObject.SampleProperty = "Test", where sampleObject is an instance of the class derived from the class, the is "Test".
return bool

Property Details

_dictionary protected_oe property

Wrapped Dictionary
protected IDictionary _dictionary
return object>.IDictionary