Use of ICollection<> instead of IList ?

Dec 23, 2010 at 9:50 AM


I see that all the code regarding list management is based on the non generic IList interface.
Regarding Windows Phone devs, I think that is not the best collection interface to use.

By using IList, your users (like me ;) should write any collection property like:

  • IList LinkedContacts { get; }
  • List<Contact> LinkedContacts { get; }

By using ICollection<>, you could offer more possibilities like:

  • ICollection<Contact> LinkedContacts { get; }
  • IList<Contact> LinkedContacts { get; }
  • LinkedList<Contact> LinkedContacts { get; }
  • List<Contact> LinkedContacts { get; }
  • ...

Or maybe both interfaces should be taken into account by Sterling ?

Dec 26, 2010 at 2:48 PM

That support is coming. Latest check-in addresses many of those issues, I just need to run a few more testing cycles before moving it into the 1.0 RTM.