19 lines
263 B
C#
19 lines
263 B
C#
namespace Books.Examples
|
|
{
|
|
|
|
public interface IEnumerable<out T>
|
|
{
|
|
IEnumerator<T> GetEnumerator();
|
|
}
|
|
|
|
public interface IEnumerator<out T>
|
|
{
|
|
T Current { get; }
|
|
|
|
bool MoveNext();
|
|
|
|
void Reset();
|
|
}
|
|
|
|
}
|