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
- 
      objectGenericSerializerFactory
Constructors
GenericSerializerFactory(Type, Type)
Initializes a new instance of the GenericSerializerFactory class.
public GenericSerializerFactory(Type baseType, Type serializerGenericType)Parameters
- baseTypeType
- The type to match. 
- serializerGenericTypeType
- 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
- selectorSerializerSelector
- typeIdObjectId
Returns
GetSerializer(SerializerSelector, Type)
public override DataSerializer? GetSerializer(SerializerSelector selector, Type type)Parameters
- selectorSerializerSelector
- typeType