Click or drag to resize

OrderedDictionary<TKey, TValue> Class

Represents a generic collection of key/value pairs that are ordered independently of the key and value.
Inheritance Hierarchy
System.Object
  Ifs.Fnd.Core.OrderedDictionary<TKey, TValue>

Namespace:  Ifs.Fnd.Core
Assembly:  Ifs.Fnd.Core (in Ifs.Fnd.Core.dll) Version: 4.52.10.0 (10.2.2.9999)
Syntax
C#
public class OrderedDictionary<TKey, TValue> : IOrderedDictionary<TKey, TValue>, 
	IOrderedDictionary, IDictionary, ICollection, IDictionary<TKey, TValue>, 
	ICollection<KeyValuePair<TKey, TValue>>, IEnumerable<KeyValuePair<TKey, TValue>>, 
	IEnumerable

Type Parameters

TKey
The type of the keys in the dictionary
TValue
The type of the values in the dictionary

The OrderedDictionary<TKey, TValue> type exposes the following members.

Constructors
  NameDescription
Public methodOrderedDictionary<TKey, TValue>()
Initializes a new instance of the OrderedDictionary<TKey,TValue> class.
Public methodOrderedDictionary<TKey, TValue>(IEqualityComparer<TKey>)
Initializes a new instance of the OrderedDictionary<TKey,TValue> class using the specified comparer.
Public methodOrderedDictionary<TKey, TValue>(Int32)
Initializes a new instance of the OrderedDictionary<TKey,TValue> class using the specified initial capacity.
Public methodOrderedDictionary<TKey, TValue>(OrderedDictionary<TKey, TValue>)
Initializes a new instance of the OrderedDictionary<TKey,TValue> class.
Public methodOrderedDictionary<TKey, TValue>(Int32, IEqualityComparer<TKey>)
Initializes a new instance of the OrderedDictionary<TKey,TValue> class using the specified initial capacity and comparer.
Top
Properties
  NameDescription
Public propertyCount
Gets the number of key/values pairs contained in the OrderedDictionary<TKey,TValue> collection.
Public propertyIsReadOnly
Gets a value indicating whether the OrderedDictionary<TKey,TValue> collection is read-only.
Public propertyItem[Int32]
Gets or sets the value at the specified index.
Public propertyItem[TKey]
Gets or sets the value with the specified key.
Public propertyKeys
Gets an ICollection<TKey> object containing the keys in the OrderedDictionary<TKey,TValue>.
Public propertyValues
Gets an ICollection<TValue> object containing the values in the OrderedDictionary<TKey,TValue>.
Top
Methods
  NameDescription
Public methodAdd
Adds an entry with the specified key and value into the OrderedDictionary<TKey,TValue> collection with the lowest available index.
Public methodClear
Removes all elements from the OrderedDictionary<TKey,TValue> collection.
Public methodContainsKey
Determines whether the OrderedDictionary<TKey,TValue> collection contains a specific key.
Public methodIndexOfKey
Returns the zero-based index of the specified key in the OrderedDictionary<TKey,TValue>
Public methodInsert
Inserts a new entry into the OrderedDictionary<TKey,TValue> collection with the specified key and value at the specified index.
Public methodRemove
Removes the entry with the specified key from the OrderedDictionary<TKey,TValue> collection.
Public methodRemoveAt
Removes the entry at the specified index from the OrderedDictionary<TKey,TValue> collection.
Public methodTryGetValue
Gets the value associated with the specified key.
Top
See Also