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.
CslaXmlReader.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 List<SerializationInfo> Read(Stream serializationStream)
20 {
21 List<SerializationInfo> returnValue = null;
22 using (var xmlReader = XmlReader.Create(serializationStream))
23 {
24 DataContractSerializer dataContractSerializer = CslaReaderWriterFactory.GetDataContractSerializer();
25 returnValue = (List<SerializationInfo>)dataContractSerializer.ReadObject(xmlReader);
26 }
27 return returnValue;
28 }
29 }
30}
This class uses DataContractSerializer and XmlReader classes to read the data from a stream
List< SerializationInfo > Read(Stream serializationStream)
Read the data from a stream and produce list of SerializationInfo objects
Represents a reader class that can be used to read the data sent across the wire in byte array format...
Definition: ICslaReader.cs:12