How dotnet framework support serialization

There are two separate mechanisms which is provided by the .NET class library

(1)XmlSerializer

(2) SoapFormatter/BinaryFormatter

Microsoft uses XmlSerializer for Web Services and SoapFormatter/BinaryFormatter for remoting. Both are available for use in your own code.