When we declare a parameter as ICollection and instantiated the object as List, why we can\'t retrive the indexes?i.e.
I try to do static class, add to icollection but i got some issues i ca开发者_Go百科nt seem to overcome. that is how i get so i can pass a ICollection in the method? cause T is that say it can not be
Note: This is similar, but not quite the same as this other question I\'ve implemented an IBusinessCollection interface. It dervies from both ICollection<T>, and the old-busted non-generic ICol
Just want to make simple extension for syntactic sygar : public static bool IsNotEmpty(this ICollection obj)
I have a List: List<int> list = new List<int> {1, 2, 3, 4, 5}; If want to get string presentation of my List. But code list.ToString() return \"System.Collections.Generic.List\'1[System