Table of Contents

Class TypeSerializer<T>

Namespace
Myra.MML
Assembly
Myra.dll

Abstract base class for type serializers that serialize and deserialize generic types.

public abstract class TypeSerializer<T> : ITypeSerializer

Type Parameters

T

The type being serialized/deserialized.

Inheritance
TypeSerializer<T>
Implements
Inherited Members

Methods

Deserialize(string)

Deserializes a string to an object.

public object Deserialize(string str)

Parameters

str string

The string to deserialize.

Returns

object

The deserialized object.

DeserializeT(string)

Deserializes a string to a typed value.

public abstract T DeserializeT(string str)

Parameters

str string

The string to deserialize.

Returns

T

The deserialized typed value.

Serialize(object)

Serializes an object to a string.

public string Serialize(object obj)

Parameters

obj object

The object to serialize.

Returns

string

The serialized string representation.

SerializeT(T)

Serializes a typed value to a string.

public abstract string SerializeT(T obj)

Parameters

obj T

The typed value to serialize.

Returns

string

The serialized string representation.