- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
// Сериализуем
var outStream = new MemoryStream();
serializer.Serialize(outStream, storedSplitInfo);
string output = outStream.ToArray().Aggregate(string.Empty, (current, simbol) => current + (char) simbol);
...
// Десериализуем
var serializer = new XmlSerializer(typeof(StoredSplitInfo));
return (StoredSplitInfo)serializer.Deserialize(new MemoryStream(docNumber.SplitInfo.Select(c => (byte)c).ToArray()));