Serializer for a type, T.
IDistributedCacheSerializer<T> is defined in the Telligent.Evolution.Extensibility.Caching.Version1 namespace.
Definition
interface IDistributedCacheSerializer<T>
{
T Deserialize(Byte data);
Byte Serialize(T obj);
}
Methods
T Deserialize(Byte data);
Deserializes the byte[] representation back to an instance.
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| data | Byte | Data | Required |
Return Type
T
Byte Serialize(T obj);
Serializes the object to a byte[].
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| obj | T | Obj | Required |