Table of Contents

Class GenericSerializerFactory

Namespace
Stride.Core.Serialization
Assembly
Stride.Core.dll

Simple serializer that will matches specific type using base type and create a data serializer with matched type.

public class GenericSerializerFactory : SerializerFactory
Inheritance
GenericSerializerFactory

Constructors

GenericSerializerFactory(Type, Type)

Initializes a new instance of the GenericSerializerFactory class.

public GenericSerializerFactory(Type baseType, Type serializerGenericType)

Parameters

baseType Type

The type to match.

serializerGenericType Type

The generic type that will be used to instantiate serializers.

Methods

GetSerializer(SerializerSelector, ref ObjectId)

public override DataSerializer GetSerializer(SerializerSelector selector, ref ObjectId typeId)

Parameters

selector SerializerSelector
typeId ObjectId

Returns

DataSerializer

GetSerializer(SerializerSelector, Type)

public override DataSerializer GetSerializer(SerializerSelector selector, Type type)

Parameters

selector SerializerSelector
type Type

Returns

DataSerializer