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
_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to