What is the default serialize for the WCF ?
-
DataContractSerializer
-
XMLSerializer
-
DataContractFormatter
-
None of the above
A
Correct answer
Explanation
DataContractSerializer is the default serializer used by WCF to translate .NET objects into XML. XmlSerializer is an alternative that must be explicitly opted into, while DataContractFormatter is not a standard standalone serializer class.