Open sandboxFocus

Class ValueTypeSerializer<T>

Base class for serializers of value types that use a single-phase deserialization process.

Inheritance
ValueTypeSerializer<T>
Implements
Namespace: Metalama.Framework.Serialization
Assembly: Metalama.Framework.dll
Syntax
public abstract class ValueTypeSerializer<T> : ISerializer where T : struct
Type Parameters
Name Description
T

The value type to serialize.

Constructors

Name Description
ValueTypeSerializer()

Methods

Name Description
Convert(object, Type)

Converts a deserialized value to a target type.

DeserializeObject(IArgumentsReader)

Creates an instance of the given type.

SerializeObject(T, IArgumentsWriter)

Serializes an object.

Extension Methods

See Also