[Mono-list] Help John's poor tired brain.

John Barnette jbarn@httcb.net
Sun, 15 Jul 2001 00:42:15 -0600

Okay, so Hashtable implements IEnumerable and IDictionary, both of which
define a GetEnumerator() method.  Specifically:

	IEnumerator GetEnumerator();

	IDictionaryEnumerator GetEnumerator();

IDictionary inherits from IEnumerable:
	public interface IDictionary : ICollection, IEnumerable

Attempting to compile my Hashtable with this stubbed implementation of

		public virtual IDictionaryEnumerator GetEnumerator() {
			return null;

...yields a pleasant compiler error:

"error CS0536: 'System.Collections.JBHashtable' does not implement interface
member 'System.Collections.IEnumerable.GetEnumerator()'.
'System.Collections.JBHashtable.GetEnumerator()' is either static, not
public, or has the wrong return type."

Help!  I'm tired, I just wrote the threadsafe wrapper, and I want to go to
sleep. ;-)

~ j.