OpenPetra
Free Administration Software for Non-Profits
Ict.Common.Remoting.Shared.THttpBinarySerializer Class Reference

Static Public Member Functions

static bool isJSClient ()
 determine if the server is contacted from the fat client or from the js client More...
 
static string SerializeObject (object o)
 serialize any object. if it is a complex type, use JSON or Base64 (fat client) More...
 
static string SerializeToBase64 (string s)
 serialize string to Base64 More...
 
static string DeserializeFromBase64 (string s)
 deserialize string from Base64 More...
 
static string SerializeObjectJSON (object o)
 serialize any object. if it is a complex type, use JSON More...
 
static object DeserializeObject (string s, string type)
 reverse of SerializeObject More...
 
static List< string > DeserializeObject (List< string > l)
 Deserialize List of String More...
 
static Dictionary< string, string > DeserializeObject (Dictionary< string, string > d)
 Deserialize Dictionary of String More...
 
static DataTable DeserializeDataTable (string s)
 Deserialize a DataTable. More...
 
static DataSet DeserializeDataSet (string s, DataSet dataset)
 Deserialize a DataSet. More...
 

Detailed Description

serialize and deserialize complex types using JSON TODO: rename the class

Member Function Documentation

◆ DeserializeDataSet()

static DataSet Ict.Common.Remoting.Shared.THttpBinarySerializer.DeserializeDataSet ( string  s,
DataSet  dataset 
)
inlinestatic

Deserialize a DataSet.

◆ DeserializeDataTable()

static DataTable Ict.Common.Remoting.Shared.THttpBinarySerializer.DeserializeDataTable ( string  s)
inlinestatic

Deserialize a DataTable.

◆ DeserializeFromBase64()

static string Ict.Common.Remoting.Shared.THttpBinarySerializer.DeserializeFromBase64 ( string  s)
inlinestatic

deserialize string from Base64

◆ DeserializeObject() [1/3]

static Dictionary< string, string > Ict.Common.Remoting.Shared.THttpBinarySerializer.DeserializeObject ( Dictionary< string, string >  d)
inlinestatic

Deserialize Dictionary of String

◆ DeserializeObject() [2/3]

static List< string > Ict.Common.Remoting.Shared.THttpBinarySerializer.DeserializeObject ( List< string >  l)
inlinestatic

Deserialize List of String

◆ DeserializeObject() [3/3]

static object Ict.Common.Remoting.Shared.THttpBinarySerializer.DeserializeObject ( string  s,
string  type 
)
inlinestatic

reverse of SerializeObject

◆ isJSClient()

static bool Ict.Common.Remoting.Shared.THttpBinarySerializer.isJSClient ( )
inlinestatic

determine if the server is contacted from the fat client or from the js client

◆ SerializeObject()

static string Ict.Common.Remoting.Shared.THttpBinarySerializer.SerializeObject ( object  o)
inlinestatic

serialize any object. if it is a complex type, use JSON or Base64 (fat client)

◆ SerializeObjectJSON()

static string Ict.Common.Remoting.Shared.THttpBinarySerializer.SerializeObjectJSON ( object  o)
inlinestatic

serialize any object. if it is a complex type, use JSON

◆ SerializeToBase64()

static string Ict.Common.Remoting.Shared.THttpBinarySerializer.SerializeToBase64 ( string  s)
inlinestatic

serialize string to Base64


The documentation for this class was generated from the following file: