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.BinaryFormatterWrapper Class Reference

Wraps the BinaryFormatter in the ISerializationFormatter interface so it can be used in a standardized manner. More...

Inheritance diagram for Csla.Serialization.BinaryFormatterWrapper:
Csla.Serialization.ISerializationFormatter

Public Member Functions

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

Properties

BinaryFormatter Formatter [get]
 Gets a reference to the underlying BinaryFormatter object. More...
 

Detailed Description

Wraps the BinaryFormatter in the ISerializationFormatter interface so it can be used in a standardized manner.

Definition at line 21 of file BinaryFormatterWrapper.cs.

Member Function Documentation

◆ Deserialize() [1/2]

object Csla.Serialization.BinaryFormatterWrapper.Deserialize ( byte[]  buffer)

Converts a serialization stream into an object graph.

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

Implements Csla.Serialization.ISerializationFormatter.

Definition at line 45 of file BinaryFormatterWrapper.cs.

◆ Deserialize() [2/2]

object Csla.Serialization.BinaryFormatterWrapper.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.

Implements Csla.Serialization.ISerializationFormatter.

Definition at line 33 of file BinaryFormatterWrapper.cs.

◆ Serialize() [1/2]

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

Converts an object graph into a byte stream.

Parameters
graphObject graph to be serialized.

Implements Csla.Serialization.ISerializationFormatter.

Definition at line 66 of file BinaryFormatterWrapper.cs.

◆ Serialize() [2/2]

void Csla.Serialization.BinaryFormatterWrapper.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.

Implements Csla.Serialization.ISerializationFormatter.

Definition at line 57 of file BinaryFormatterWrapper.cs.

Property Documentation

◆ Formatter

BinaryFormatter Csla.Serialization.BinaryFormatterWrapper.Formatter
get

Gets a reference to the underlying BinaryFormatter object.

Definition at line 79 of file BinaryFormatterWrapper.cs.