Class Common
Helper class to serialize and de-serialize objects.
Inheritance
System.Object
Common
Namespace: Syncfusion.Olap.UWP.Common
Assembly: Syncfusion.Olap.UWP.dll
Syntax
public class Common : Object
Constructors
Common()
Declaration
public Common()
Methods
DeserializeObject<T>(String)
De-serializes the XML string to object.
Declaration
public static T DeserializeObject<T>(string xml)
Parameters
Type | Name | Description |
---|---|---|
System.String | xml | The XML string. |
Returns
Type | Description |
---|---|
T | The de-serialized object. |
Type Parameters
Name |
---|
T |
SerializeObject<T>(T)
Serializes the object to XML string.
Declaration
public static string SerializeObject<T>(T obj)
Parameters
Type | Name | Description |
---|---|---|
T | obj | The object to be serialized. |
Returns
Type | Description |
---|---|
System.String | The serialized XML string. |
Type Parameters
Name |
---|
T |