[IronPython] __clrtype__ and generics
Simon Segal
simon.segal at bigpond.com
Fri Dec 18 02:34:57 PST 2009
I am curious as to how to define a System.Collections.Generic.
ICollection as per the below with @clrtype.accepts and @clrtype.returns.
Same question goes for _clrfields where I want an ICollection<T> (c#) as a
field.
@property
@clrtype.accepts()
@clrtype.returns(ICollection[Order])
def Orders(self): return self._orders
@Orders.setter
@clrtype.accepts(ICollection[Order])
@clrtype.returns()
def Orders(self, value): self._orders = value
Thanks,
Simon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ironpython.com/pipermail/users-ironpython.com/attachments/20091218/51e42385/attachment.htm>
More information about the Users
mailing list