Class Utils
Query generator utility class
Inheritance
System.Object
Utils
Namespace: Syncfusion.Olap.UWP.Common
Assembly: Syncfusion.Olap.UWP.dll
Syntax
public class Utils : Object
Constructors
Utils()
Declaration
public Utils()
Methods
Deserialize<T>(String)
De-serializes the JSON string to an object of specified type.
Declaration
public static T Deserialize<T>(string json)
Parameters
Type | Name | Description |
---|---|---|
System.String | json | The JSON string. |
Returns
Type | Description |
---|---|
T | The de-serialized object. |
Type Parameters
Name | Description |
---|---|
T | The type of object. |
Serialize(Object)
Serializes the object to JSON string.
Declaration
public static string Serialize(object instance)
Parameters
Type | Name | Description |
---|---|---|
System.Object | instance | The object to be serialized. |
Returns
Type | Description |
---|---|
System.String | The serialized JSON string. |