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 List<SerializationInfo> Read(Stream serializationStream)
20 {
21 List<SerializationInfo> returnValue = null;
22 using (var xmlReader = XmlDictionaryReader.CreateBinaryReader(serializationStream, XmlDictionaryReaderQuotas.Max))
23 {
24 DataContractSerializer dataContractSerializer = CslaReaderWriterFactory.GetDataContractSerializer();
25 returnValue = (List<SerializationInfo>)dataContractSerializer.ReadObject(xmlReader);
26 }
27 return returnValue;
28 }
29 }
This class uses DataContractSerializer and XmlDictionaryReader 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