Fix bug #699182, List indexer doesn't increment version
authorJb Evain <jbevain@gmail.com>
Fri, 10 Jun 2011 09:11:23 +0000 (11:11 +0200)
committerJb Evain <jbevain@gmail.com>
Fri, 10 Jun 2011 09:11:56 +0000 (11:11 +0200)
mcs/class/corlib/System.Collections.Generic/List.cs

index 7646b777ba77533e9f093590931c67355afa362c..5b413e95064fd1aebc7365105ba496807e08a52d 100644 (file)
@@ -637,6 +637,7 @@ namespace System.Collections.Generic {
                                if ((uint) index == (uint) _size)
                                        throw new ArgumentOutOfRangeException ("index");
                                _items [index] = value;
+                               _version++;
                        }
                }