Interface ISerializer
Abstract interface for serialization of objects and data.
Must be implemented by all physical serialization classes.
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
DataSource
Gets access to the type-specific data source object.
Declaration
object DataSource { get; }
Property Value
Methods
Close()
Close any open connections associated with this serializer.
Declaration
DeserializeObjects<T>(Func<T, bool>)
Declaration
List<T> DeserializeObjects<T>(Func<T, bool> filter)
Parameters
Type |
Name |
Description |
Func<T, bool> |
filter |
|
Returns
Type Parameters
Open()
Open the connection to the data source to be written to/read from.
Declaration
SerializeObject(object, SerializationParams?)
Declaration
void SerializeObject(object srzObj, SerializationParams? srzParams = null)
Parameters
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