I wonder if the exception string is off a little. What it probably should say 
is "expecting array, got list". We no longer have automatic conversion from 
list to array. We have one from tuple to array, but not from list.

You can construct the array explicitly:

System.Array[element_type](anything_enumerable)

Does this work?

Martin

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Bjorke
Sent: Wednesday, July 26, 2006 10:55 PM
To: Discussion of IronPython
Subject: [IronPython] Working Beta7 WinForms Code fails under RC1

I have these two lines which worked well under Beta7:

 cb = Drawing2D.ColorBlend()
 cb.Colors = [c,hilight,c,c]

Now I get an error saying "expecting list got array"

??
-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may 
contain
confidential information.  Any unauthorized review, use, disclosure or 
distribution
is prohibited.  If you are not the intended recipient, please contact the 
sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------
_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to