In C#, how does one obtain a generic enumerator from a given array?
In the code below, MyArray is an array of MyType objects. I\'d like to
MyArray
MyType
YourArray.OfType().GetEnumerator();
may perform a little better, since it only has to check the type, and not cast.