2 // System.Web.UI/KeyedListEnumerator.cs
4 // Author: Todd Berman <tberman@gentoo.org>
6 // (C) 2003 Todd Berman
10 using System.Collections;
12 namespace System.Web.UI
14 public class KeyedListEnumerator : IDictionaryEnumerator
16 private int index = -1;
17 private ArrayList objs;
19 internal KeyedListEnumerator (ArrayList list)
24 public bool MoveNext ()
27 if (index >= objs.Count)
38 public object Current {
40 if (index < 0 || index >= objs.Count)
41 throw new InvalidOperationException ();
47 public DictionaryEntry Entry {
49 return (DictionaryEntry) Current;