Method Deserialize
Deserialize<T>(Stream, bool)
Json deserialization method that deserialize the data from a stream and return it as the type T. Can use encryption.
Declaration
public override T Deserialize<T>(Stream stream, bool encrypted = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | stream | The stream to deserialize |
| bool | encrypted | Is the deserialization encrypted |
Returns
| Type | Description |
|---|---|
| T | The deserialized data as type T |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the data to be deserialized |
Overrides
Deserialize(string, Type, bool)
Json deserialzation method that deserialize the data from a string as the type T and return it as an object. Can use encryption.
Declaration
public override object Deserialize(string data, Type t, bool encrypted = false)
Parameters
| Type | Name | Description |
|---|---|---|
| string | data | The data to deserialize as a string |
| Type | t | The type of the data to be deserialized |
| bool | encrypted | Is the deserialization encrypted |
Returns
| Type | Description |
|---|---|
| object | The deserialized data as an object |
Overrides
Deserialize<T>(byte[], bool)
This method is not implemented yet. Json deserialization method that deserialize the data from a byte array and return it as the type T. Can use encryption.
Declaration
public override T Deserialize<T>(byte[] data, bool encrypted = false)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | data | The data to deserialize as a byte array |
| bool | encrypted | Is the deserialization encrypted |
Returns
| Type | Description |
|---|---|
| T | The deserialized data as type T |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the data to be deserialized |
Overrides
Deserialize<T>(string, bool)
Json deserialization method that deserialize the data from a string and return it as the type T. Can use encryption.
Declaration
public override T Deserialize<T>(string data, bool encrypted = false)
Parameters
| Type | Name | Description |
|---|---|---|
| string | data | The data to deserialize as a string |
| bool | encrypted | Is the deserialization encrypted |
Returns
| Type | Description |
|---|---|
| T | The deserialized data as type T |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the data to be deserialized |