Method Deserialize
Deserialize<T>(Stream, bool)
Deserialize the data from a stream and return it as the type T. Can use encryption.
Declaration
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 |
Deserialize(string, Type, bool)
Deserialize the data from a string as the type T and return it as an object. Can use encryption.
Declaration
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 |
Deserialize<T>(byte[], bool)
Deserialize the data from a byte array and return it as the type T. Can use encryption.
Declaration
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 |
Deserialize<T>(string, bool)
Deserialize the data from a string and return it as the type T. Can use encryption.
Declaration
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 |