|
// This file is part of the Loyc project. Licence: LGPL
using System;
using System.Collections;
using System.Collections.Generic;
namespace Loyc.Collections
{
[Serializable]
public class EmptyEnumerator<T> : IEnumerator<T>, IEnumerator
{
public static readonly EmptyEnumerator<T> Value = new EmptyEnumerator<T>();
public T Current { get { return default(T); } }
object IEnumerator.Current { get { return this.Current; } }
public void Dispose() { }
public bool MoveNext() { return false; }
public void Reset() { }
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.