Class SerializationHelper
Inheritance
System.Object
SerializationHelper
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: SecureExchangesSDK.dll
Syntax
public static class SerializationHelper
Methods
DeserializeFromJson(String, Type)
Deserialize an object with JsonConvert
Declaration
public static object DeserializeFromJson(string jSON, Type type)
Parameters
Type |
Name |
Description |
System.String |
jSON |
the object
|
System.Type |
type |
the type
|
Returns
Type |
Description |
System.Object |
|
DeserializeFromJson<T>(String)
Declaration
public static T DeserializeFromJson<T>(string jSON)
Parameters
Type |
Name |
Description |
System.String |
jSON |
|
Returns
Type Parameters
DeserializeStringFromBase64(String)
Declaration
public static string DeserializeStringFromBase64(string utf8Base64Str)
Parameters
Type |
Name |
Description |
System.String |
utf8Base64Str |
|
Returns
Type |
Description |
System.String |
|
DeserializeTextFromBase64(String)
Return a UTF8 string from base 64 string
Declaration
public static string DeserializeTextFromBase64(string base64)
Parameters
Type |
Name |
Description |
System.String |
base64 |
|
Returns
Type |
Description |
System.String |
|
SerializeStringToBase64(String)
Declaration
public static string SerializeStringToBase64(string utf8Str)
Parameters
Type |
Name |
Description |
System.String |
utf8Str |
|
Returns
Type |
Description |
System.String |
|
SerializeToJson(Object)
Declaration
public static string SerializeToJson(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.String |
|
XmlDeserializeFromBase64String(String, Type)
Declaration
public static object XmlDeserializeFromBase64String(string base64String, Type objType)
Parameters
Type |
Name |
Description |
System.String |
base64String |
|
System.Type |
objType |
|
Returns
Type |
Description |
System.Object |
|
XmlDeserializeFromBase64String<T>(String)
Declaration
public static T XmlDeserializeFromBase64String<T>(string base64String)
Parameters
Type |
Name |
Description |
System.String |
base64String |
|
Returns
Type Parameters
XmlDeserializeFromFile<T>(String)
Declaration
public static T XmlDeserializeFromFile<T>(string filePath)
Parameters
Type |
Name |
Description |
System.String |
filePath |
|
Returns
Type Parameters
XmlDeserializeFromString(String, Type)
Declaration
public static object XmlDeserializeFromString(string xmlString, Type objType)
Parameters
Type |
Name |
Description |
System.String |
xmlString |
|
System.Type |
objType |
|
Returns
Type |
Description |
System.Object |
|
XmlDeserializeFromString<T>(String)
Declaration
public static T XmlDeserializeFromString<T>(string xmlString)
Parameters
Type |
Name |
Description |
System.String |
xmlString |
|
Returns
Type Parameters
XmlSerializeToBase64String(Object)
Declaration
public static string XmlSerializeToBase64String(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.String |
|
XmlSerializeToFile(Object, String)
Declaration
public static void XmlSerializeToFile(object obj, string filePath)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
System.String |
filePath |
|
XmlSerializeToString(Object)
Declaration
public static string XmlSerializeToString(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.String |
|
XmlSerializeToString(Object, Boolean)
Declaration
public static string XmlSerializeToString(object obj, bool fullXmlSupport)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
System.Boolean |
fullXmlSupport |
|
Returns
Type |
Description |
System.String |
|