You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a method is named GetEnumerator and returns an IEnumerator it should not be made static. If it was changed you could break existing foreachs. See reference on MSDN;
Example:
class MyList
{
public System.Collections.IEnumerator GetEnumerator()
{
yield return "x";
yield return "y";
}
}