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.
ISerializationFormatter.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="ISerializationFormatter.cs" company="Marimer LLC">
3// Copyright (c) Marimer LLC. All rights reserved.
4// Website: https://cslanet.com
5// </copyright>
6// <summary>Defines an object that can serialize and deserialize</summary>
7//-----------------------------------------------------------------------
8using System;
9
10namespace Csla.Serialization
11{
16 public interface ISerializationFormatter
17 {
25 object Deserialize(System.IO.Stream serializationStream);
33 object Deserialize(byte[] serializationStream);
40 void Serialize(System.IO.Stream serializationStream, object graph);
45 byte[] Serialize(object graph);
46 }
47}
Defines an object that can serialize and deserialize object graphs.
byte[] Serialize(object graph)
Converts an object graph into a byte stream.
object Deserialize(byte[] serializationStream)
Converts a serialization stream into an object graph.
void Serialize(System.IO.Stream serializationStream, object graph)
Converts an object graph into a byte stream.
object Deserialize(System.IO.Stream serializationStream)
Converts a serialization stream into an object graph.