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-04-16 13:12:35 +0400
committerjbevain <jbevain@gmail.com>2010-04-16 13:12:35 +0400
commitc62aeac69281d27eefba1ea8eef540dabdc97a1e (patch)
treeec192fe8c09abe9dfa80f500bdaea60f406fbb35 /Mono.Collections.Generic
parentd1bff1e2e8119eecb0f942924dd0f6015f411d9a (diff)
compile of the Compact Framework
Diffstat (limited to 'Mono.Collections.Generic')
-rw-r--r--Mono.Collections.Generic/Collection.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/Mono.Collections.Generic/Collection.cs b/Mono.Collections.Generic/Collection.cs
index 6cf9b74..7e7f3fe 100644
--- a/Mono.Collections.Generic/Collection.cs
+++ b/Mono.Collections.Generic/Collection.cs
@@ -241,7 +241,13 @@ namespace Mono.Collections.Generic {
System.Math.Max (items.Length * 2, default_capacity),
new_size);
+#if !CF
Array.Resize (ref items, new_size);
+#else
+ var array = new T [new_size];
+ Array.Copy (items, array, size);
+ items = array;
+#endif
}
int IList.Add (object value)