PixelCrushers.BinaryDataSerializer Class Reference

Implementation of DataSerializer that uses BinaryFormatter. More...

Inheritance diagram for PixelCrushers.BinaryDataSerializer:
Collaboration diagram for PixelCrushers.BinaryDataSerializer:

Public Member Functions

override string Serialize (object data)
 
override T Deserialize< T > (string s, T data=default(T))
 
- Public Member Functions inherited from PixelCrushers.DataSerializer
string Serialize (object data)
 
Deserialize< T > (string s, T data=default(T))
 

Protected Member Functions

virtual void AddSurrogateSelectors (SurrogateSelector surrogateSelector)
 
virtual BinaryFormatter CreateBinaryFormatter ()
 

Detailed Description

Implementation of DataSerializer that uses BinaryFormatter.

Note: For security reasons, BinaryFormatter is no longer recommended. Use JsonDataSerializer, or use this class as a model to implement your own binary DataSerializer.

Member Function Documentation

◆ AddSurrogateSelectors()

virtual void PixelCrushers.BinaryDataSerializer.AddSurrogateSelectors ( SurrogateSelector  surrogateSelector)
inlineprotectedvirtual

◆ CreateBinaryFormatter()

virtual BinaryFormatter PixelCrushers.BinaryDataSerializer.CreateBinaryFormatter ( )
inlineprotectedvirtual

◆ Deserialize< T >()

override T PixelCrushers.BinaryDataSerializer.Deserialize< T > ( string  s,
data = default(T) 
)
inline

◆ Serialize()

override string PixelCrushers.BinaryDataSerializer.Serialize ( object  data)
inline

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