CSLA.NET 5.4.2
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
Csla.Serialization.ISerializationFormatter Interface Reference

Defines an object that can serialize and deserialize object graphs. More...

Inheritance diagram for Csla.Serialization.ISerializationFormatter:
Csla.Serialization.BinaryFormatterWrapper Csla.Serialization.Mobile.MobileFormatter Csla.Serialization.NetDataContractSerializerWrapper

Public Member Functions

object Deserialize (System.IO.Stream serializationStream)
 Converts a serialization stream into an object graph. More...
 
object Deserialize (byte[] 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...
 
byte[] Serialize (object graph)
 Converts an object graph into a byte stream. More...
 

Detailed Description

Defines an object that can serialize and deserialize object graphs.

Definition at line 16 of file ISerializationFormatter.cs.

Member Function Documentation

◆ Deserialize() [1/2]

object Csla.Serialization.ISerializationFormatter.Deserialize ( byte[]  serializationStream)

Converts a serialization stream into an object graph.

Parameters
serializationStreamByte stream containing the serialized data.
Returns
A deserialized object graph.

Implemented in Csla.Serialization.BinaryFormatterWrapper, Csla.Serialization.NetDataContractSerializerWrapper, and Csla.Serialization.Mobile.MobileFormatter.

◆ Deserialize() [2/2]

object Csla.Serialization.ISerializationFormatter.Deserialize ( System.IO.Stream  serializationStream)

Converts a serialization stream into an object graph.

Parameters
serializationStreamByte stream containing the serialized data.
Returns
A deserialized object graph.

Implemented in Csla.Serialization.BinaryFormatterWrapper, and Csla.Serialization.NetDataContractSerializerWrapper.

◆ Serialize() [1/2]

byte[] Csla.Serialization.ISerializationFormatter.Serialize ( object  graph)

Converts an object graph into a byte stream.

Parameters
graphObject graph to be serialized.

Implemented in Csla.Serialization.BinaryFormatterWrapper, Csla.Serialization.NetDataContractSerializerWrapper, and Csla.Serialization.Mobile.MobileFormatter.

◆ Serialize() [2/2]

void Csla.Serialization.ISerializationFormatter.Serialize ( System.IO.Stream  serializationStream,
object  graph 
)

Converts an object graph into a byte stream.

Parameters
serializationStreamStream that will contain the the serialized data.
graphObject graph to be serialized.

Implemented in Csla.Serialization.BinaryFormatterWrapper, and Csla.Serialization.NetDataContractSerializerWrapper.