[corlib] Fixes array enumerator to match .net behaviour
[mono.git] / mcs / class / corlib / System / Array.cs
index 00e0430d3de27dc3b5019a4a2cb84604d1934cc4..d699446f2b5ce3aad52382b8900a6bde0a3161bd 100644 (file)
@@ -207,7 +207,7 @@ namespace System
                        // we just decr the size, so, 0 - 1 == FINISHED
                        const int FINISHED = -1;
                        
-                       Array array;
+                       readonly Array array;
                        int idx;
 
                        internal InternalEnumerator (Array array)
@@ -218,7 +218,6 @@ namespace System
 
                        public void Dispose ()
                        {
-                               idx = NOT_STARTED;
                        }
 
                        public bool MoveNext ()