Types of Collections

Types of Collections

  • Comments 1

If a type implements multiple kinds of collections, which pattern for collection types will be used when the object is serialized?

The order that is checked for supporting collection interfaces is:

  1. IDictionary<TKey, TValue>
  2. IDictionary
  3. IList<T>
  4. ICollection<T>
  5. IList
  6. IEnumerable<T>
  7. ICollection
  8. Enumerable
  • Interesting Finds: May 30, 2009

Page 1 of 1 (1 items)