C# Class Dynamitey.DynamicObjects.BaseDictionary

Base class of Expando-Type objects
Inheritance: BaseObject, INotifyPropertyChanged
Afficher le fichier Open project: ekonbenefits/dynamitey

Protected Properties

Свойство Type Description
_dictionary object>.IDictionary

Méthodes publiques

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

Méthodes protégées

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

Adds the specified item.
public Add ( object>.KeyValuePair item ) : void
item object>.KeyValuePair The item.
Résultat void

Add() public méthode

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

BaseDictionary() protected méthode

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

Contains() public méthode

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

ContainsKey() public méthode

Determines whether the specified key contains key.
public ContainsKey ( string key ) : bool
key string The key.
Résultat bool

CopyTo() public méthode

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

Equals() public méthode

Equalses the specified other.
public Equals ( Dictionary other ) : bool
other Dictionary The other.
Résultat bool

Equals() public méthode

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

GetDynamicMemberNames() public méthode

Returns the enumeration of all dynamic member names.
public GetDynamicMemberNames ( ) : IEnumerable
Résultat IEnumerable

GetHashCode() public méthode

Returns a hash code for this instance.
public GetHashCode ( ) : int
Résultat int

OnPropertyChanged() protected méthode

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

Remove() public méthode

Removes the specified item.
public Remove ( object>.KeyValuePair item ) : bool
item object>.KeyValuePair The item.
Résultat bool

Remove() public méthode

Removes the specified key.
public Remove ( string key ) : bool
key string The key.
Résultat bool

SetProperty() protected méthode

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

ToString() public méthode

Returns a System.String that represents this instance.
public ToString ( ) : string
Résultat string

TryGetMember() public méthode

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

TryGetValue() public méthode

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

TryInvokeMember() public méthode

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

TrySetMember() public méthode

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

Property Details

_dictionary protected_oe property

Wrapped Dictionary
protected IDictionary _dictionary
Résultat object>.IDictionary