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.
CslaXmlWriter.cs
Go to the documentation of this file.
1using System.Collections.Generic;
2using System.IO;
3using System.Runtime.Serialization;
4using System.Xml;
5
7{
13 {
19 public void Write(Stream serializationStream, List<SerializationInfo> objectData)
20 {
21 using (var xmlWrtier = XmlWriter.Create(serializationStream, new XmlWriterSettings() { CloseOutput = false}))
22 {
23 DataContractSerializer dataContractSerializer = CslaReaderWriterFactory.GetDataContractSerializer();
24 dataContractSerializer.WriteObject(xmlWrtier, objectData);
25 xmlWrtier.Flush();
26 }
27 }
28 }
29}
This class uses DataContractSerializer and XmlWriter 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