[nem-en] list not enumerable

vc vc at rsdn.ru
Tue Jan 9 21:36:59 CET 2007


Hi,

> I have a few methods which take parameters of type ICollection but I
> cannot pass the std nemerle list to those functions. Is there an obvious
> reason why list does not inherit from ICollection?

Is bad design. Use IEnumerable[T] in you methods or simply convert list to
array by ToArray() method.




More information about the devel-en mailing list