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.
Go to the documentation of this file.
1using System.Collections.Generic;
2using System.IO;
3using System.Runtime.Serialization;
4using System.Xml;
13 {
19 public void Write(Stream serializationStream, List<SerializationInfo> objectData)
20 {
21 using (var xmlWrtier = XmlDictionaryWriter.CreateBinaryWriter(serializationStream, null, null, false))
22 {
23 DataContractSerializer dataContractSerializer = CslaReaderWriterFactory.GetDataContractSerializer();
24 dataContractSerializer.WriteObject(xmlWrtier, objectData);
25 xmlWrtier.Flush();
26 }
27 }
28 }
This class uses DataContractSerializer and XmlDictionaryWriter classes to write the data to a stream
void Write(Stream serializationStream, List< SerializationInfo > objectData)
Write the data to a stream
Represents a class that can be used to write a list of SerializationInfo objects into a stream,...
Definition: ICslaWriter.cs:12