Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/cecil.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjbevain <jbevain@gmail.com>2010-05-11 20:07:29 +0400
committerjbevain <jbevain@gmail.com>2010-05-11 20:07:29 +0400
commit3735fbceebdffa162a66ca4412d577071223eb0d (patch)
tree6cd3d3bd91a00ea98da2a434e1e0cc9ee5c427cd /Mono.Collections.Generic
parentbb02d3ba7c1680175db31645c087ac6bf950745e (diff)
fix computation of indexes for variables and parameters
Diffstat (limited to 'Mono.Collections.Generic')
-rw-r--r--Mono.Collections.Generic/Collection.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Mono.Collections.Generic/Collection.cs b/Mono.Collections.Generic/Collection.cs
index 0fbfccf..d7628f0 100644
--- a/Mono.Collections.Generic/Collection.cs
+++ b/Mono.Collections.Generic/Collection.cs
@@ -140,8 +140,9 @@ namespace Mono.Collections.Generic {
if (size == items.Length)
Grow (1);
- Shift (index, 1);
OnInsert (item, index);
+
+ Shift (index, 1);
items [index] = item;
version++;
}