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

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

Inheritance diagram for Csla.Serialization.NetDataContractSerializerWrapper:
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

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

Detailed Description

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

Definition at line 19 of file NetDataContractSerializerWrapper.cs.

Member Function Documentation

◆ Deserialize() [1/2]

object Csla.Serialization.NetDataContractSerializerWrapper.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 43 of file NetDataContractSerializerWrapper.cs.

◆ Deserialize() [2/2]

object Csla.Serialization.NetDataContractSerializerWrapper.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 31 of file NetDataContractSerializerWrapper.cs.

◆ Serialize() [1/2]

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

Converts an object graph into a byte stream.

Parameters
graphObject graph to be serialized.

Implements Csla.Serialization.ISerializationFormatter.

Definition at line 64 of file NetDataContractSerializerWrapper.cs.

◆ Serialize() [2/2]

void Csla.Serialization.NetDataContractSerializerWrapper.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 55 of file NetDataContractSerializerWrapper.cs.

Property Documentation

◆ Formatter

NetDataContractSerializer Csla.Serialization.NetDataContractSerializerWrapper.Formatter
get

Gets a reference to the underlying NetDataContractSerializer object.

Definition at line 77 of file NetDataContractSerializerWrapper.cs.