Serializes an object to an XML string. Unlike the other SerializeObject overloads this methods returns a string rather than a bool result!
public static string SerializeObjectToString(object instance, bool throwExceptions)
Return Value
null on error otherwise the Xml String.
Parameters
instance
throwExceptions
Determines if a failure throws or returns null
Remarks
If null is passed in null is also returned so you might want to check for null before calling this method.
See also:
Class SerializationUtils© West Wind Technologies, 1996-2016 • Updated: 12/12/15
Comment or report problem with topic