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

Answer Posted / kirti

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

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it possible to unit test an mvc application without running the controllers in an asp.net process?

822


How large is the .net framework 3.0?

751


Explain dependency resolution?

817


what is csdl?

780


Is .net framework 4.8 the last version?

746


what is entity framework advantage?

785


What is entity sql? : Entity framework

740


Explain the types of Scaffoldings.

834


Will the name change be reflected in any of the existing .net framework 2.0 apis, assemblies, or namespaces?

764


Explain covariance and contra-variance in .net framework 4.0. Give an example for each.

777


When using aspx view engine, to have a consistent look and feel, across all pages of the application, we can make use of asp.net master pages. What is asp.net master pages equivalent, when using razor views?

753


My organization went through the approval process of supporting the .net framework 2.0 in production. Do we need to go through the same process all over again for the .net framework 3.0? Do I need to do any application compatibility testing for my .net framework 2.0 applications?

758


Is it possible to cancel filter execution?

740


Explain bundle.config in mvc4?

855


Describe the .net framework architecture.

797