I want to serialize instances of my class. Should I use xmlserializer, soapformatter or binaryformatter?



I want to serialize instances of my class. Should I use xmlserializer, soapformatter or binaryformat..

Answer / Ravi Shekhar Kumar

The choice between `XmlSerializer`, `SoapFormatter`, or `BinaryFormatter` depends on your specific requirements. Use XmlSerializer when you need to serialize and deserialize XML data, SoapFormatter for SOAP messages, and BinaryFormatter for binary data storage in memory.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net General Interview Questions

What is a delegate in .NET?

1 Answers  


What are the two kinds of properties.

2 Answers   Wipro,


Which two properties are on every validation control?

7 Answers   Siebel Systems,


Can a try block have more than one catch block?

1 Answers  


What are the important components of .net?

1 Answers  


How do you create threading in.net?

1 Answers  


How to convert a .NET object into COM operabililty?

1 Answers   Petranics Solutions,


What method do you use to explicitly kill a users session? How?

1 Answers  


With these events, why wouldn't microsoft combine invalidate and paint, so that you wouldn't have to tell it to repaint, and then to force it to repaint?

1 Answers  


Explain the difference between task and thread in .net?

1 Answers  


What is a system lock?

2 Answers   Wipro,


What is cyclomatic complexity and why is it important?

1 Answers  


Categories