View Methods |
The OrderedDictionaryTKey, TValueView type exposes the following members.
Name | Description | |
---|---|---|
![]() | Add(KeyValuePairTKey, TValue) |
Adds a key-value pair to the collection. This implementation calls the Add method
with the Key and Value from the item.
(Inherited from DictionaryBaseTKey, TValue.) |
![]() | Add(TKey, TValue) |
Adds a new key-value pair to the dictionary.
(Inherited from DictionaryBaseTKey, TValue.) |
![]() | AsReadOnly |
Provides a read-only view of this dictionary. The returned IDictionary<TKey,TValue> provides
a view of the dictionary that prevents modifications to the dictionary. Use the method to provide
access to the dictionary without allowing changes. Since the returned object is just a view,
changes to the dictionary will be reflected in the view.
(Inherited from DictionaryBaseTKey, TValue.) |
![]() ![]() | Clear |
Removes all the keys and values within this view from the underlying OrderedDictionary.
(Overrides DictionaryBaseTKey, TValueClear.) |
![]() | Contains |
Determines if a dictionary contains a given KeyValuePair. This implementation checks to see if the
dictionary contains the given key, and if the value associated with the key is equal to (via object.Equals)
the value.
(Inherited from DictionaryBaseTKey, TValue.) |
![]() | ContainsKey |
Tests if the key is present in the part of the dictionary being viewed.
(Overrides DictionaryBaseTKey, TValueContainsKey(TKey).) |
![]() | ConvertAllTOutput |
Convert this collection of items by applying a delegate to each item in the collection. The resulting enumeration
contains the result of applying converter to each item in this collection, in
order.
(Inherited from CollectionBaseT.) |
![]() | CopyTo |
Copies all the items in the collection into an array. Implemented by
using the enumerator returned from GetEnumerator to get all the items
and copy them to the provided array.
(Inherited from CollectionBaseT.) |
![]() | CountWhere |
Counts the number of items in the collection that satisfy the condition
defined by predicate.
(Inherited from CollectionBaseT.) |
![]() | Equals | (Inherited from Object.) |
![]() | Exists |
Determines if the collection contains any item that satisfies the condition
defined by predicate.
(Inherited from CollectionBaseT.) |
![]() | Finalize | (Inherited from Object.) |
![]() | FindAll |
Enumerates the items in the collection that satisfy the condition defined
by predicate.
(Inherited from CollectionBaseT.) |
![]() | ForEach |
Performs the specified action on each item in this collection.
(Inherited from CollectionBaseT.) |
![]() | GetEnumerator |
Enumerate all the keys and values in this view.
(Overrides CollectionBaseTGetEnumerator.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | Remove(KeyValuePairTKey, TValue) |
Determines if a dictionary contains a given KeyValuePair, and if so, removes it. This implementation checks to see if the
dictionary contains the given key, and if the value associated with the key is equal to (via object.Equals)
the value. If so, the key-value pair is removed.
(Inherited from DictionaryBaseTKey, TValue.) |
![]() | Remove(TKey) |
Removes the key (and associated value) from the underlying dictionary of this view. that is equal to the passed in key. If
no key in the view is equal to the passed key, the dictionary and view are unchanged.
(Overrides DictionaryBaseTKey, TValueRemove(TKey).) |
![]() | RemoveAll |
Removes all the items in the collection that satisfy the condition
defined by predicate.
(Inherited from CollectionBaseT.) |
![]() | Reversed |
Creates a new View that has the same keys and values as this, in the reversed order.
|
![]() | ToArray |
Creates an array of the correct size, and copies all the items in the
collection into the array, by calling CopyTo.
(Inherited from CollectionBaseT.) |
![]() | ToString |
Shows the string representation of the dictionary. The string representation contains
a list of the mappings in the dictionary.
(Inherited from DictionaryBaseTKey, TValue.) |
![]() | TrueForAll |
Determines if all of the items in the collection satisfy the condition
defined by predicate.
(Inherited from CollectionBaseT.) |
![]() | TryGetValue |
Determines if this view contains a key equal to key. If so, the value
associated with that key is returned through the value parameter.
(Overrides DictionaryBaseTKey, TValueTryGetValue(TKey, TValue).) |