C# Class Castle.ActiveRecord.DictionaryAdapter

Maps keys to position in the values array. Basically key -> index
Inheritance: IDictionary
Afficher le fichier Open project: shosca/ActiveRecord

Méthodes publiques

Méthode Description
Add ( object key, object value ) : void

Adds an element with the provided key and value to the object.

Clear ( ) : void

Removes all elements from the object.

Contains ( object key ) : bool

Determines whether the object contains an element with the specified key.

CopyTo ( Array array, int index ) : void

Copies the elements of the to an , starting at a particular index.

DictionaryAdapter ( String names, object values ) : System

Initializes a new instance of the DictionaryAdapter class.

GetEnumerator ( ) : IEnumerator

Returns an enumerator that iterates through a collection.

Remove ( object key ) : void

Removes the element with the specified key from the object.

this ( object key ) : object

Gets or sets the System.Object with the specified key.

Private Methods

Méthode Description
CalculateHash ( String key ) : int
GetValuesIndexByKey ( object key ) : int
IDictionary ( ) : IDictionaryEnumerator

Returns an object for the object.

InternalAdd ( String key, int index ) : void

Method Details

Add() public méthode

Adds an element with the provided key and value to the object.
An element with the same key already exists in the object. key is null. The is read-only.-or- The has a fixed size.
public Add ( object key, object value ) : void
key object The to use as the key of the element to add.
value object The to use as the value of the element to add.
Résultat void

Clear() public méthode

Removes all elements from the object.
The object is read-only.
public Clear ( ) : void
Résultat void

Contains() public méthode

Determines whether the object contains an element with the specified key.
key is null.
public Contains ( object key ) : bool
key object The key to locate in the object.
Résultat bool

CopyTo() public méthode

Copies the elements of the to an , starting at a particular index.
array is null. index is less than zero. array is multidimensional.-or- index is equal to or greater than the length of array.-or- The number of elements in the source is greater than the available space from index to the end of the destination array. The type of the source cannot be cast automatically to the type of the destination array.
public CopyTo ( Array array, int index ) : void
array System.Array The one-dimensional that is the destination of the elements copied from . The must have zero-based indexing.
index int The zero-based index in array at which copying begins.
Résultat void

DictionaryAdapter() public méthode

Initializes a new instance of the DictionaryAdapter class.
public DictionaryAdapter ( String names, object values ) : System
names String The names.
values object The values.
Résultat System

GetEnumerator() public méthode

Returns an enumerator that iterates through a collection.
public GetEnumerator ( ) : IEnumerator
Résultat IEnumerator

Remove() public méthode

Removes the element with the specified key from the object.
The object is read-only.-or- The has a fixed size. key is null.
public Remove ( object key ) : void
key object The key of the element to remove.
Résultat void

this() public méthode

Gets or sets the System.Object with the specified key.
public this ( object key ) : object
key object
Résultat object