using System.Collections.Generic;
public static class PeekEnumeratorExtensions
{
/// Returns a that iterates through the collection.
/// The element type of objects to enumerate.
/// The collection to be enumerated.
/// A that can be used to iterate through the collection.
public static PeekEnumerator GetPeekEnumerator(this IEnumerable collection)
{
return new PeekEnumerator(collection.GetEnumerator());
}
}