[IronPython] Generics support in IronPython

Keith J. Farmer kfarmer at thuban.org
Sat Apr 2 04:38:37 CEST 2005

So that shows consumption -- is creation supported?
Very cool


From: users-ironpython.com-bounces at lists.ironpython.com on behalf of Jim Hugunin
Sent: Fri 4/1/2005 5:17 PM
To: Martin Smith; users-ironpython.com at lists.ironpython.com
Subject: RE: [IronPython] Generics support in IronPython

Martin Smith wrote:
> Will IronPython support generics?

Here's the short answer to your question:

>>> from System.Collections.Generic import *
>>> l = List[str]()
>>> l.Add('hi')
>>> list(l)
>>> l.Add(42)
System.Exception: bad args to this method <method# Add on

-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 3856 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20050401/be932a24/attachment.bin>

More information about the Ironpython-users mailing list