Friday, October 14, 2005

Is this vs2005 beta 2 bug or my fault?

when i try to implement the interface System.Collections.Generic.IList.
i met this error:

'ClassLibrary1.CustomList' does not implement interface member 'System.Collections.IEnumerable.GetEnumerator()'. 'ClassLibrary1.CustomList.GetEnumerator()' is either static, not public, or has the wrong return type.

and my code just like this:

public IEnumerator GetEnumerator()
return new CustomEnumerator(_field1);

what's wrong happened?

1 comment:

edcollins0588 said...

I read over your blog, and i found it inquisitive, you may find My Blog interesting. My blog is just about my day to day life, as a park ranger. So please Click Here To Read My Blog