Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    GenericSerializerFactory Class

    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.

    System.Object → SerializerFactory → GenericSerializerFactory
    Derived from GenericSerializerFactory:

    public class GenericSerializerFactory : SerializerFactory
    Name Description
    Constructors
    GenericSerializerFactory(Type, Type)

    Initializes a new instance of the GenericSerializerFactory class.

    Methods
    GetSerializer(SerializerSelector, ref ObjectId)
    GetSerializer(SerializerSelector, Type)
    | Improve this Doc View Source

    Constructors


    GenericSerializerFactory(Type, Type)

    Initializes a new instance of the GenericSerializerFactory class.

    public GenericSerializerFactory(Type baseType, Type serializerGenericType)
    Parameters
    Type Name Description
    System.Type baseType

    The type to match.

    System.Type serializerGenericType

    The generic type that will be used to instantiate serializers.

    | Improve this Doc View Source

    Methods


    GetSerializer(SerializerSelector, ref ObjectId)

    public override DataSerializer GetSerializer(SerializerSelector selector, ref ObjectId typeId)
    Parameters
    Type Name Description
    SerializerSelector selector
    ObjectId typeId
    Returns
    Type Description
    DataSerializer
    Overrides
    SerializerFactory.GetSerializer(SerializerSelector, ref ObjectId)

    GetSerializer(SerializerSelector, Type)

    public override DataSerializer GetSerializer(SerializerSelector selector, Type type)
    Parameters
    Type Name Description
    SerializerSelector selector
    System.Type type
    Returns
    Type Description
    DataSerializer
    Overrides
    SerializerFactory.GetSerializer(SerializerSelector, Type)

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation