2008-03-05 09:52:00 -05:00
|
|
|
// ==++==
|
|
|
|
//
|
|
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
//
|
|
|
|
// ==--==
|
|
|
|
|
|
|
|
using System;
|
|
|
|
|
2008-11-17 18:29:00 -05:00
|
|
|
namespace System.Collections
|
|
|
|
{
|
2008-03-05 09:52:00 -05:00
|
|
|
// This interface represents an enumerator that allows sequential access to the
|
|
|
|
// elements of a dictionary. Upon creation, an enumerator is conceptually
|
|
|
|
// positioned before the first element of the enumeration. The first call to the
|
|
|
|
// MoveNext method brings the first element of the enumeration into view,
|
|
|
|
// and each successive call to MoveNext brings the next element into
|
|
|
|
// view until MoveNext returns false, indicating that there are no more
|
|
|
|
// elements to enumerate. Following each call to MoveNext, the
|
|
|
|
// Key and Value methods are used to obtain the key and
|
|
|
|
// value of the element currently in view. The values returned by calls to
|
|
|
|
// Key and Value are undefined before the first call to
|
|
|
|
// MoveNext and following a call to MoveNext that returned false.
|
|
|
|
// Enumerators are typically used in while loops of the form
|
|
|
|
//
|
|
|
|
public interface IDictionaryEnumerator : IEnumerator
|
|
|
|
{
|
|
|
|
Object Key { get; }
|
|
|
|
Object Value { get; }
|
|
|
|
DictionaryEntry Entry { get; }
|
|
|
|
}
|
|
|
|
}
|