PostSharpAPI ReferencePost­Sharp.​SerializationValue­Type­Serializer<T>
Open sandboxFocus

ValueTypeSerializer<T> Class

Base serializer for all value types.

Inheritance
System.Object
ValueTypeSerializer<T>
Implements
ISerializer
Namespace: PostSharp.Serialization
Assembly: PostSharp.dll
Syntax
public abstract class ValueTypeSerializer<T> : Object, ISerializer where T : struct, ValueType
Type Parameters
Name Description
T

Constructors

Name Description
ValueTypeSerializer()

Methods

Name Description
Convert(Object, Type)

Converts a value into a given target type.

DeserializeObject(IArgumentsReader)

Creates an instance of the given type.

SerializeObject(T, IArgumentsWriter)

Serializes an object

Explicit Interface Implementations

Name Description
ISerializer.CreateInstance(Type, IArgumentsReader)

Creates an instance of the given type.

ISerializer.DeserializeFields(ref Object, IArgumentsReader)

Completes the second phase of deserialization by setting fields and other properties.

ISerializer.IsTwoPhase
ISerializer.SerializeObject(Object, IArgumentsWriter, IArgumentsWriter)

Serializes an object