Home  /  Questions  /  Question

Mar 02, 2011

How do I implement IEnumerable.GetEnumerator() on the SortedList class in the MVC example?

Hi All,

How would I implement the following:

IEnumerator<T> IEnumerable<T>.GetEnumerator()
   throw new NotImplementedException();
On the SortedList.cs class? It's used in the ASP.Net MVC sample.
Thanks in advance!

Jul 10, 2017

I use

return GetEnumerator();