C# Класс Dynamitey.DynamicObjects.BaseDictionary

Base class of Expando-Type objects
Наследование: BaseObject, INotifyPropertyChanged
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
_dictionary object>.IDictionary

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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.

Описание методов

Add() публичный Метод

Adds the specified item.
public Add ( object>.KeyValuePair item ) : void
item object>.KeyValuePair The item.
Результат void

Add() публичный Метод

Adds the specified key.
public Add ( string key, object value ) : void
key string The key.
value object The value.
Результат void

BaseDictionary() защищенный Метод

Initializes a new instance of the Dictionary class.
protected BaseDictionary ( object>.IEnumerable dict = null ) : System
dict object>.IEnumerable The dict.
Результат System

Contains() публичный Метод

Determines whether [contains] [the specified item].
public Contains ( object>.KeyValuePair item ) : bool
item object>.KeyValuePair The item.
Результат bool

ContainsKey() публичный Метод

Determines whether the specified key contains key.
public ContainsKey ( string key ) : bool
key string The key.
Результат bool

CopyTo() публичный Метод

Copies to.
public CopyTo ( object>.KeyValuePair array, int arrayIndex ) : void
array object>.KeyValuePair The array.
arrayIndex int Index of the array.
Результат void

Equals() публичный Метод

Equalses the specified other.
public Equals ( Dictionary other ) : bool
other Dictionary The other.
Результат bool

Equals() публичный Метод

Determines whether the specified System.Object is equal to this instance.
public Equals ( object obj ) : bool
obj object The to compare with this instance.
Результат bool

GetDynamicMemberNames() публичный Метод

Returns the enumeration of all dynamic member names.
public GetDynamicMemberNames ( ) : IEnumerable
Результат IEnumerable

GetHashCode() публичный Метод

Returns a hash code for this instance.
public GetHashCode ( ) : int
Результат int

OnPropertyChanged() защищенный Метод

Called when [property changed].
protected OnPropertyChanged ( string key ) : void
key string The key.
Результат void

Remove() публичный Метод

Removes the specified item.
public Remove ( object>.KeyValuePair item ) : bool
item object>.KeyValuePair The item.
Результат bool

Remove() публичный Метод

Removes the specified key.
public Remove ( string key ) : bool
key string The key.
Результат bool

SetProperty() защищенный Метод

Sets the property.
protected SetProperty ( string key, object value ) : void
key string The key.
value object The value.
Результат void

ToString() публичный Метод

Returns a System.String that represents this instance.
public ToString ( ) : string
Результат string

TryGetMember() публичный Метод

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 .
Результат bool

TryGetValue() публичный Метод

Tries the get value.
public TryGetValue ( string key, object &value ) : bool
key string The key.
value object The value.
Результат bool

TryInvokeMember() публичный Метод

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.
Результат bool

TrySetMember() публичный Метод

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".
Результат bool

Описание свойств

_dictionary защищенное свойство

Wrapped Dictionary
protected IDictionary _dictionary
Результат object>.IDictionary