Home > Services > DXCore Services – Serialization

DXCore Services – Serialization

April 22nd, 2011

The Serialization DXCore service provides methods for objects serialization (saving and loading). It can be used to load CodeRush Code tempalates.

Methods of this service:

Method Name Description
LoadFromBinaryFile (String) Deserializes the stream specified by the full path to the file into an object graph using the binary formatter.
LoadFromBinaryFile (String, SerializationBinder) Deserializes the stream specified by the full path to the file into an object graph using the binary formatter. Takes the SerializationBinder object instance that controls the binding of a serialized object to a type.
LoadFromXmlFile (String) Deserializes the data on the stream specified by the full path to the file and reconstitutes the gpraph of objects using the SOAP formatter.
LoadFromXmlFile (String, SerializationBinder) Deserializes the data on the stream specified by the full path to the file and reconstitutes the gpraph of objects using the SOAP formatter. Takes the SerializationBinder object instance that controls the binding of a serialized object to a type.
SaveToBinaryFile (Object, String) Serializes the given object into the stream specified by the full path to the file using the binary formatter.
SaveToXMLFile (Object, String) Serializes the given object into the stream specified by the full path to the file using the SOAP formatter.
SmartLoad (String) Deserializes the data on the stream specified by the relative or full path to the file and reconstitutes the graph of objects using the SOAP formatter first. If it fails, uses the binary formatter.
SmartLoad (String, SerializationBinder) Deserializes the data on the stream specified by the relative or full path to the file and reconstitutes the graph of objects using the SOAP formatter first. If it fails, uses the binary formatter. Takes the SerializationBinder object instance that controls the binding of a serialized object to a type.
SmartSave (Object, String) Serializes the data on the stream specified by the relative or full path to the file using both SOAP and binary formatters.
—–
Products: DXCore
Versions: 10.2 and up
VS IDEs: any
Updated: Apr/25/2011
ID: D079

Similar Posts: