[Mono-bugs] [Bug 328036] Casting bug with generic collections

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Sep 25 06:12:24 EDT 2007


Robert Jordan <robertj at gmx.net> changed:

           What    |Removed                                         |Added
                 CC|                                                |robertj at gmx.net
          Component|System                                          |CORLIB

--- Comment #1 from Robert Jordan <robertj at gmx.net>  2007-09-25 04:12:24 MST ---
Compilable test case:

using System;
using System.Collections;
using System.Collections.Generic;

class T
        static void Main ()
                Dictionary<string, string> d =  new Dictionary<string,
                d["a"] = "b";
                ICollection keys = d.Keys;
                object[] keyArray = new object[d.Count];
                keys.CopyTo(keyArray, 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