diff options
author | jbevain <jbevain@gmail.com> | 2010-04-16 13:12:35 +0400 |
---|---|---|
committer | jbevain <jbevain@gmail.com> | 2010-04-16 13:12:35 +0400 |
commit | c62aeac69281d27eefba1ea8eef540dabdc97a1e (patch) | |
tree | ec192fe8c09abe9dfa80f500bdaea60f406fbb35 /Mono.Collections.Generic | |
parent | d1bff1e2e8119eecb0f942924dd0f6015f411d9a (diff) |
compile of the Compact Framework
Diffstat (limited to 'Mono.Collections.Generic')
-rw-r--r-- | Mono.Collections.Generic/Collection.cs | 6 |
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) |