.NET Framework Bookmark and Share   
 index > .NET Remoting and Runtime Serialization > How to control XML serialization of object properties?
 

How to control XML serialization of object properties?

How does XmlSerializer convert primitive types to string representation and back? How can I substitute my own formatter/parser?
E.g., I want to serialize a Double property of my object such that its string representation would include only two decimal places. How can I do that? MSDN documentation is not clear about this.
Thanks!
bambuk

Just make the class inherit from:

System.Xml.Serialization.IXmlSerializable

gbarcalo

You can use google to search for other answers

Custom Search

More Threads

• is this file missed "http://local.live.com/JS/VE.js"
• stream images over TCP sockets
• Beginner question: Getting exception of type :System.Security.SecurityException. then of type ...
• Channel Selection for callback object when multiple channels available
• Client Activated objects using Factory SAO
• Server encountered an internal error.
• Another Deserialization problem
• Start/stop windows services on remote machine outside of current logon?
• Socket Cash policy: Absolute timeout influence on perfomance
• Fortran dll is not working with asp.net