//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//------------------------------------------------------------------------------
namespace System.Collections.Specialized {
using System;
using System.Collections;
///
///
/// This interface adds indexing on the IDictionary keyed table concept. Objects
/// added or inserted in an IOrderedDictionary must have both a key and an index, and
/// can be retrieved by either.
/// This interface is useful when preserving easy IDictionary access semantics via a key is
/// desired while ordering is necessary.
///
///
public interface IOrderedDictionary : IDictionary {
// properties
///
/// Returns the object at the given index
///
object this[int index] { get; set; }
// Returns an IDictionaryEnumerator for this dictionary.
new IDictionaryEnumerator GetEnumerator();
// methods
///
/// Inserts the given object, with the given key, at the given index
///
void Insert(int index, object key, object value);
///
/// Removes the object and key at the given index
///
void RemoveAt(int index);
}
}