'ConvertAll' is not implemented for IList, Am I right? Is there any workaround?
Thanks.
IList<T> does not define a method called ConvertAll(). You can see the definition here: http://msdn.microsoft.com/en-us/library/5y536ey6.aspx
There is a method on the concrete implementation List<T>; http://msdn.microsoft.com/en-us/library/73fe8cwf.aspx
You can replicate this behaviour using the LINQ statement .Select().
You will have to use a System.Collections.Generic.List to have a .ConvertAll() method in the base.  
IList does not implement .ConvertAll().
If you MUST use an IList, you could always write your own .ConvertAll() method.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With