+2009-10-02 Raja R Harinath <harinath@hurrynot.org>
+
+ * Dictionary.cs (Do_ICollectionCopyTo): Revert 2009-10-01 change.
+ Use BOOTSTRAP_BASIC to hide code from gmcs 2.4.x.
+
2009-10-01 Marek Habersack <mhabersack@novell.com>
* Dictionary.cs: cast target array to TRet[] instead of object[] -
if ((src.IsPrimitive || tgt.IsPrimitive) && !tgt.IsAssignableFrom (src))
throw new Exception (); // we don't care. it'll get transformed to an ArgumentException below
- Do_CopyTo <TRet, TRet> ((TRet []) array, index, transform);
+#if BOOTSTRAP_BASIC
+ // BOOTSTRAP: gmcs 2.4.x seems to have trouble compiling the alternative
+ throw new Exception ();
+#else
+ Do_CopyTo ((object []) array, index, transform);
+#endif
+
} catch (Exception e) {
throw new ArgumentException ("Cannot copy source collection elements to destination array", "array", e);
}