Freigeben über


Types of Collections

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

Comments

  • Anonymous
    May 30, 2009
    Interesting Finds: May 30, 2009