ProtonNet Server 1.0
An Open Solution for all your socket or web api needs.
Loading...
Searching...
No Matches
XmobiTea.Data.Converter.IDataConverter Interface Reference

Defines methods for serializing and deserializing objects and arrays. More...

Inheritance diagram for XmobiTea.Data.Converter.IDataConverter:
XmobiTea.Data.Converter.DataConverter

Public Member Functions

DeserializeObject< T > (GNHashtable gnHashtable)
 Deserializes a GNHashtable to an object of type T .
 
object DeserializeObject (GNHashtable gnHashtable, System.Type cls)
 Deserializes a GNHashtable to an object of the specified type.
 
System.Collections.IList DeserializeArray< T > (GNArray gnArray)
 Deserializes a GNArray to a list of objects of type T .
 
System.Collections.IList DeserializeArray (GNArray gnArray, System.Type cls)
 Deserializes a GNArray to a list of objects of the specified type.
 
GNHashtable SerializeObject (object obj)
 Serializes an object to a GNHashtable.
 
GNArray SerializeArray (System.Collections.IList objLst)
 Serializes a list of objects to a GNArray.
 

Detailed Description

Defines methods for serializing and deserializing objects and arrays.

Member Function Documentation

◆ DeserializeArray()

System.Collections.IList XmobiTea.Data.Converter.IDataConverter.DeserializeArray ( GNArray gnArray,
System.Type cls )

Deserializes a GNArray to a list of objects of the specified type.

Parameters
gnArrayThe GNArray to deserialize.
clsThe type of objects in the list.
Returns
The deserialized list of objects.

Implemented in XmobiTea.Data.Converter.DataConverter.

◆ DeserializeArray< T >()

System.Collections.IList XmobiTea.Data.Converter.IDataConverter.DeserializeArray< T > ( GNArray gnArray)

Deserializes a GNArray to a list of objects of type T .

Template Parameters
TThe type of objects in the list.
Parameters
gnArrayThe GNArray to deserialize.
Returns
The deserialized list of objects.

Implemented in XmobiTea.Data.Converter.DataConverter.

◆ DeserializeObject()

object XmobiTea.Data.Converter.IDataConverter.DeserializeObject ( GNHashtable gnHashtable,
System.Type cls )

Deserializes a GNHashtable to an object of the specified type.

Parameters
gnHashtableThe GNHashtable to deserialize.
clsThe type of object to deserialize.
Returns
The deserialized object.

Implemented in XmobiTea.Data.Converter.DataConverter.

◆ DeserializeObject< T >()

Deserializes a GNHashtable to an object of type T .

Template Parameters
TThe type of object to deserialize.
Parameters
gnHashtableThe GNHashtable to deserialize.
Returns
The deserialized object.

Implemented in XmobiTea.Data.Converter.DataConverter.

◆ SerializeArray()

GNArray XmobiTea.Data.Converter.IDataConverter.SerializeArray ( System.Collections.IList objLst)

Serializes a list of objects to a GNArray.

Parameters
objLstThe list of objects to serialize.
Returns
The serialized GNArray.

Implemented in XmobiTea.Data.Converter.DataConverter.

◆ SerializeObject()

GNHashtable XmobiTea.Data.Converter.IDataConverter.SerializeObject ( object obj)

Serializes an object to a GNHashtable.

Parameters
objThe object to serialize.
Returns
The serialized GNHashtable.

Implemented in XmobiTea.Data.Converter.DataConverter.


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