SparkleShare/SharpSSH/java/util/Enumeration.cs

32 lines
513 B
C#
Raw Normal View History

2010-07-15 19:41:37 +00:00
using System;
using System.Collections;
namespace Tamir.SharpSsh.java.util
{
/// <summary>
/// Summary description for Enumeration.
/// </summary>
public class Enumeration
{
private IEnumerator e;
private bool hasMore;
public Enumeration(IEnumerator e)
{
this.e=e;
hasMore = e.MoveNext();
}
public bool hasMoreElements()
{
return hasMore;
}
public object nextElement()
{
object o = e.Current;
hasMore = e.MoveNext();
return o;
}
}
}