Debian Codegraph @

mcs/class/referencesource/mscorlib/system/collections/generic/ienumerator.cs

raw
1 // ==++==
2 //
3 // Copyright (c) Microsoft Corporation. All rights reserved.
4 //
5 // ==--==
6 /*============================================================
7 **
8 ** Interface: IEnumerator
9 **
10 ** <OWNER>kimhamil</OWNER>
11 **
12 **
13 ** Purpose: Base interface for all generic enumerators.
14 **
15 **
16 ===========================================================*/
17 namespace System.Collections.Generic {
18 using System;
19 using System.Runtime.InteropServices;
20
21 // Base interface for all generic enumerators, providing a simple approach
22 // to iterating over a collection.
23 public interface IEnumerator<out T> : IDisposable, IEnumerator
24 {
25 // Returns the current element of the enumeration. The returned value is
26 // undefined before the first call to MoveNext and following a
27 // call to MoveNext that returned false. Multiple calls to
28 // GetCurrent with no intervening calls to MoveNext
29 // will return the same object.
30 //
31 /// <include file='doc\IEnumerator.uex' path='docs/doc[@for="IEnumerator.Current"]/*' />
32 new T Current {
33 get;
34 }
35 }
36 }