Welcome to MSDN Blogs Sign in | Join | Help

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
Published Friday, May 29, 2009 5:00 AM by Nicholas Allen

Comments

Saturday, May 30, 2009 10:04 AM by Jason Haley

# Interesting Finds: May 30, 2009

Interesting Finds: May 30, 2009

New Comments to this post are disabled
 
Page view tracker