CSLA.NET 6.0.0
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
SerializationOptions.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="SerializationOptions.cs" company="Marimer LLC">
3// Copyright (c) Marimer LLC. All rights reserved.
4// Website: https://cslanet.com
5// </copyright>
6// <summary>Use this type to configure the settings for serialization.</summary>
7//-----------------------------------------------------------------------
8using System;
10
11namespace Csla.Configuration
12{
17 {
25 {
27 return this;
28 }
29
35 {
36 CslaReaderWriterFactory.WriterType = typeof(T);
37 return this;
38 }
39
45 {
46 CslaReaderWriterFactory.ReaderType = typeof(T);
47 return this;
48 }
49 }
50}
Provides consistent context information between the client and server DataPortal objects.
static Type SerializationFormatter
Gets the serialization formatter type used by CSLA .NET for all explicit object serialization (such a...
Use this type to configure the settings for serialization.
SerializationOptions MobileReader< T >()
Sets type of the writer that is used to read data to serialization stream in SerializationFormatterFa...
SerializationOptions MobileWriter< T >()
Sets type of the writer that is used to write data to serialization stream in SerializationFormatterF...
SerializationOptions SerializationFormatter(Type formatterType)
Sets the serialization formatter type used by CSLA .NET for all explicit object serialization (such a...
Represents a reader class that can be used to read the data sent across the wire in byte array format...
Definition: ICslaReader.cs:12
Represents a class that can be used to write a list of SerializationInfo objects into a stream,...
Definition: ICslaWriter.cs:12