Senator Guerra Souty original series calendar,replica hublot blue steel peach pointer collocation of rolex replica Rome digital scale, track type minute replica watches scale shows that the classical model is swiss replica watches incomparable, wearing elegant dress highlights.
mr-ponna.com

 

YOU ARE HERE: HOME Questions Why can t I serialize hashtables



Why hashtables are not serialzable in .NET?

View(s): 19649

Why can't I serialize hashtables

Answer 1)
The thing about XML Serialization is that it's not just about creating a stream of bytes. It's also about creating an XML Schema that this stream of bytes would validate against. There's no good way in XML Schema to represent a dictionary.

This limitation is not only Hashtable, the XmlSerializer cannot process classes implementing the IDictionary interface due to the fact that a hashtable does not have a counterpart in the XSD type system. The only solution is to implement a custom hashtable that does not implement the IDictionary interface.
  Asked in:  TCS (Tata Consultancy Services)   Expertise Level:  Experienced
  Last updated on Saturday, 16 July 2011
3/5 stars (17 vote(s))

Register Login Ask Us Write to Us Help