Logo 
Search:

.Net Framework FAQ

Submit Interview FAQ
Home » Interview FAQ » .Net FrameworkRSS Feeds

Why do I get errors when I try to serialize a Hashtable?

  Shared By: Latoya Murray    Date: Dec 03    Category: .Net Framework    Views: 1099

Answer:

XmlSerializer will refuse to serialize instances of any class that implements IDictionary, e.g. Hashtable. SoapFormatter and BinaryFormatter do not have this restriction.

Share: 
 

Didn't find what you were looking for? Find more on Why do I get errors when I try to serialize a Hashtable? Or get search suggestion and latest updates.


Your Comment
  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].


Tagged: