Show / Hide Table of Contents

Interface ISerializer

Abstract interface for serialization of objects and data. Must be implemented by all physical serialization classes.

Namespace: Quantellia.WMServer.Serialization
Assembly: WMServer.dll
Syntax
public interface ISerializer

Properties

Connection

Connection string, file name, URL, etc. for the connection to the data source.

Declaration
string? Connection { get; set; }
Property Value
Type Description
string

DataSource

Gets access to the type-specific data source object.

Declaration
object DataSource { get; }
Property Value
Type Description
object

Methods

Close()

Close any open connections associated with this serializer.

Declaration
void Close()

DeserializeObjects<T>(Func<T, bool>)

Declaration
List<T> DeserializeObjects<T>(Func<T, bool> filter)
Parameters
Type Name Description
Func<T, bool> filter
Returns
Type Description
List<T>
Type Parameters
Name Description
T

Open()

Open the connection to the data source to be written to/read from.

Declaration
void Open()

SerializeObject(object, SerializationParams?)

Declaration
void SerializeObject(object srzObj, SerializationParams? srzParams = null)
Parameters
Type Name Description
object srzObj
SerializationParams srzParams

SerializeObjects(IEnumerable<object>, SerializationParams?)

Serialize the specified collection of ojects to CSV format, and write them to the location specified in the Connection property.

Declaration
void SerializeObjects(IEnumerable<object> srzObjs, SerializationParams? srzParams = null)
Parameters
Type Name Description
IEnumerable<object> srzObjs
SerializationParams srzParams
In this article
Back to top Copyright © 2025 Quantellia LLC.    Version 2.0.0 Revision 399     Last Updated 1/15/2025    DRAFT DOCUMENTATION. SUBJECT TO CHANGE