Wanzyee Studio

Interface of data serializer. More...

Inherited by JsonNetSerializer, and UnityJsonSerializer.

Public Member Functions

string Serialize< T > (T data)
 Serialize the specified data to text. More...
 
Deserialize< T > (string text)
 Deserialize the specified text to create new data. More...
 
void Overwrite< T > (string text, T data)
 Deserialize the specified text to overwrite a existing data. More...
 

Detailed Description

Interface of data serializer.

Member Function Documentation

string Serialize< T > ( data)

Serialize the specified data to text.

Template Parameters
TData type.
Parameters
dataData.
Returns
Text.

Implemented in JsonNetSerializer, and UnityJsonSerializer.

T Deserialize< T > ( string  text)

Deserialize the specified text to create new data.

Template Parameters
TData type.
Parameters
textText.
Returns
Data.

Implemented in JsonNetSerializer, and UnityJsonSerializer.

void Overwrite< T > ( string  text,
data 
)

Deserialize the specified text to overwrite a existing data.

Template Parameters
TData type.
Parameters
textText.
dataData.

Implemented in JsonNetSerializer, and UnityJsonSerializer.