[Mono-bugs] [Bug 328036] [PATCH]Casting bug with generic collections
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Sep 25 06:24:38 EDT 2007
https://bugzilla.novell.com/show_bug.cgi?id=328036#c5
--- Comment #5 from Robert Jordan <robertj at gmx.net> 2007-09-25 04:24:38 MST ---
Same problem with Dictionary.ValueCollection. Patch updated
(bug-328036-2.diff).
using System;
using System.Collections;
using System.Collections.Generic;
class T
{
static void Main ()
{
Dictionary<string, string> d = new Dictionary<string,
string>();
d["a"] = "b";
ICollection keys = d.Keys;
object[] keyArray = new object[d.Count];
keys.CopyTo(keyArray, 0);
ICollection vals = d.Values;
object[] valArray = new object[d.Count];
vals.CopyTo (valArray, 0);
}
}
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list