![]() |
Common
A library of common classes.
|
A dictionary that is data contract serializable. More...
Public Member Functions | |
HashMap () | |
Initializes a new empty dictionary. More... | |
HashMap (HashMap< TKey, TValue > dict) | |
Initializes a copy of the specified dictionary. More... | |
HashMap (int capacity) | |
Initializes a new dictionary with the specified capacity. More... | |
![]() | |
void | Add (KeyValuePair< TKey, TValue > item) |
void | Add (TKey key, TValue value) |
void | Clear () |
bool | Contains (KeyValuePair< TKey, TValue > item) |
bool | ContainsKey (TKey key) |
void | CopyTo (Array array, int index) |
void | CopyTo (KeyValuePair< TKey, TValue >[] array, int arrayIndex) |
Dictionary< TKey, TValue >.Enumerator | GetEnumerator () |
bool | Remove (KeyValuePair< TKey, TValue > item) |
bool | Remove (TKey key) |
bool | TryGetValue (TKey key, out TValue value) |
Static Public Member Functions | |
static implicit | operator HashMap< TKey, TValue > (Dictionary< TKey, TValue > dict) |
Creates a new data contract dictionary instance with the specified dictionary assigned. More... | |
Properties | |
KeyValue< TKey, TValue >[] | KeyValueArray [getset] |
An array of key value pairs. More... | |
![]() | |
int | Count [get] |
Dictionary< TKey, TValue > | Dictionary = new Dictionary<TKey, TValue>() [getprotected set] |
The underlying dictionary. More... | |
bool | IsReadOnly [get] |
bool | IsSynchronized [get] |
Dictionary< TKey, TValue >.KeyCollection | Keys [get] |
ICollection< TKey > IDictionary< TKey, TValue >. | Keys [get] |
IEnumerable< TKey > IReadOnlyDictionary< TKey, TValue >. | Keys [get] |
object | SyncRoot [get] |
TValue | this[TKey key] [getset] |
Dictionary< TKey, TValue >.ValueCollection | Values [get] |
ICollection< TValue > IDictionary< TKey, TValue >. | Values [get] |
IEnumerable< TValue > IReadOnlyDictionary< TKey, TValue >. | Values [get] |
Private Member Functions | |
KeyValue< TKey, TValue >[] | GetKeyValueArray () |
Returns a new array of key value pairs for the dictionary. More... | |
void | SetDictionary (KeyValue< TKey, TValue >[] array) |
Sets the dictionary from an array of key value pairs. More... | |
A dictionary that is data contract serializable.
Definition at line 11 of file HashMap.cs.
HashMap | ( | ) |
Initializes a new empty dictionary.
Definition at line 22 of file HashMap.cs.
HashMap | ( | int | capacity | ) |
Initializes a new dictionary with the specified capacity.
capacity | The capacity. |
Definition at line 31 of file HashMap.cs.
Initializes a copy of the specified dictionary.
dict | The dictionary. |
Definition at line 40 of file HashMap.cs.
|
private |
Returns a new array of key value pairs for the dictionary.
Definition at line 57 of file HashMap.cs.
|
static |
Creates a new data contract dictionary instance with the specified dictionary assigned.
dict | The dictionary. |
Definition at line 49 of file HashMap.cs.
|
private |
Sets the dictionary from an array of key value pairs.
array | An array of key value pairs. |
Definition at line 77 of file HashMap.cs.
|
getset |
An array of key value pairs.
Definition at line 17 of file HashMap.cs.