Serializes and deserializes objects at the field level. More...
Public Member Functions | |
MobileFormatter (ApplicationContext applicationContext) | |
Creates an instance of the type. More... | |
void | Serialize (Stream serializationStream, object graph) |
Serialize an object graph into XML. More... | |
List< SerializationInfo > | SerializeAsDTO (object graph) |
Serialize an object graph into DTO. More... | |
SerializationInfo | SerializeObject (object obj) |
Serializes an object into a SerializationInfo object. More... | |
object | Deserialize (Stream serializationStream) |
Deserialize an object from XML. More... | |
object | DeserializeAsDTO (List< SerializationInfo > deserialized) |
Deserialize an object from DTO graph. More... | |
IMobileObject | GetObject (int referenceId) |
Gets a deserialized object based on the object's reference id within the serialization stream. More... | |
byte[] | SerializeToByteArray (object obj) |
Serializes the object into a byte array. More... | |
List< SerializationInfo > | SerializeToDTO (object obj) |
Serializes the object into a DTO. More... | |
object | DeserializeFromDTO (List< SerializationInfo > serialized) |
Serializes an object from a DTO graph More... | |
object | DeserializeFromByteArray (byte[] data) |
Deserializes a byte stream into an object. More... | |
object | DeserializeFromSerializationInfo (List< SerializationInfo > data) |
Deserializes a byte stream into an object. More... | |
Public Member Functions inherited from Csla.Serialization.ISerializationFormatter | |
object | Deserialize (System.IO.Stream serializationStream) |
Converts a serialization stream into an object graph. More... | |
void | Serialize (System.IO.Stream serializationStream, object graph) |
Converts an object graph into a byte stream. More... | |
Serializes and deserializes objects at the field level.
Definition at line 25 of file MobileFormatter.cs.
Csla.Serialization.Mobile.MobileFormatter.MobileFormatter | ( | ApplicationContext | applicationContext | ) |
Creates an instance of the type.
applicationContext |
Definition at line 33 of file MobileFormatter.cs.
object Csla.Serialization.Mobile.MobileFormatter.Deserialize | ( | Stream | serializationStream | ) |
Deserialize an object from XML.
serializationStream | Stream containing the serialized XML data. |
Definition at line 223 of file MobileFormatter.cs.
object Csla.Serialization.Mobile.MobileFormatter.DeserializeAsDTO | ( | List< SerializationInfo > | deserialized | ) |
Deserialize an object from DTO graph.
param name="deserialized">DTO group to deserialize
Definition at line 256 of file MobileFormatter.cs.
object Csla.Serialization.Mobile.MobileFormatter.DeserializeFromByteArray | ( | byte[] | data | ) |
Deserializes a byte stream into an object.
data | Byte array containing the object's serialized data. |
Definition at line 406 of file MobileFormatter.cs.
object Csla.Serialization.Mobile.MobileFormatter.DeserializeFromDTO | ( | List< SerializationInfo > | serialized | ) |
Serializes an object from a DTO graph
serialized | DTO Graph to deserialize |
Definition at line 388 of file MobileFormatter.cs.
object Csla.Serialization.Mobile.MobileFormatter.DeserializeFromSerializationInfo | ( | List< SerializationInfo > | data | ) |
Deserializes a byte stream into an object.
data | DTO containing the object's serialized data. |
Definition at line 430 of file MobileFormatter.cs.
IMobileObject Csla.Serialization.Mobile.MobileFormatter.GetObject | ( | int | referenceId | ) |
Gets a deserialized object based on the object's reference id within the serialization stream.
referenceId | Id of object in stream. |
Definition at line 342 of file MobileFormatter.cs.
void Csla.Serialization.Mobile.MobileFormatter.Serialize | ( | Stream | serializationStream, |
object | graph | ||
) |
Serialize an object graph into XML.
serializationStream | Stream to which the serialized data will be written. |
graph | Root object of the object graph to serialize. |
Definition at line 51 of file MobileFormatter.cs.
List< SerializationInfo > Csla.Serialization.Mobile.MobileFormatter.SerializeAsDTO | ( | object | graph | ) |
Serialize an object graph into DTO.
graph | Root object of the object graph to serialize. |
Definition at line 76 of file MobileFormatter.cs.
SerializationInfo Csla.Serialization.Mobile.MobileFormatter.SerializeObject | ( | object | obj | ) |
Serializes an object into a SerializationInfo object.
obj | Object to be serialized. |
Definition at line 128 of file MobileFormatter.cs.
byte[] Csla.Serialization.Mobile.MobileFormatter.SerializeToByteArray | ( | object | obj | ) |
Serializes the object into a byte array.
obj | The object to be serialized, which must implement IMobileObject. |
Definition at line 359 of file MobileFormatter.cs.
List< SerializationInfo > Csla.Serialization.Mobile.MobileFormatter.SerializeToDTO | ( | object | obj | ) |
Serializes the object into a DTO.
obj | The object to be serialized, which must implement IMobileObject. |
Definition at line 377 of file MobileFormatter.cs.