Wraps a dictionary and provides read-only access to it. More...
Public Member Functions | |
ksConstMap (Dictionary< Key, Value > map) | |
Constructor. More... | |
bool | Contains (Key key) |
Checks if a key is in the map. More... | |
bool | TryGetValue (Key key, out Value value) |
Tries to get a value from the map. More... | |
IEnumerator< KeyValuePair< Key, Value > > | GetEnumerator () |
Gets the enumerator for the map. More... | |
Properties | |
int | Count [get] |
Number of entries in the map. More... | |
Value | this[Key key] [get] |
Gets a value from the map. More... | |
Wraps a dictionary and provides read-only access to it.
Key | |
Value |
KS.Reactor.ksConstMap< Key, Value >.ksConstMap | ( | Dictionary< Key, Value > | map | ) |
Constructor.
map |
bool KS.Reactor.ksConstMap< Key, Value >.Contains | ( | Key | key | ) |
Checks if a key is in the map.
key | Key to check. |
IEnumerator<KeyValuePair<Key, Value> > KS.Reactor.ksConstMap< Key, Value >.GetEnumerator | ( | ) |
Gets the enumerator for the map.
bool KS.Reactor.ksConstMap< Key, Value >.TryGetValue | ( | Key | key, |
out Value | value | ||
) |
Tries to get a value from the map.
key | Key to get value for. |
value | Value for the key. |
|
get |
Number of entries in the map.
|
get |
Gets a value from the map.
key |