This project has moved and is read-only. For the latest updates, please go here.

Use of ICollection<> instead of IList ?

Dec 23, 2010 at 10: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 3: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.