Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    KeyWithIdSerializer Class

    Namespace: Stride.Core.Yaml
    Assembly: Stride.Core.Assets.dll

    A Yaml serializer for IKeyWithId.

    System.Object → Stride.Core.Yaml.Serialization.Serializers.ScalarSerializerBase → Stride.Core.Yaml.AssetScalarSerializerBase → ItemIdSerializerBase → KeyWithIdSerializer
    Derived from KeyWithIdSerializer:

    [YamlSerializerFactory(new string[]{"Assets"})]
    public class KeyWithIdSerializer : ItemIdSerializerBase, IYamlSerializable, IYamlSerializableFactory, IDataCustomVisitor
    Name Description
    Fields
    OverrideKeyInfoKey

    A key used in properties of serialization contexts to notify whether an override flag should be appened when serializing the key of the related ItemId.

    Methods
    CanVisit(Type)
    ConvertFrom(ref ObjectContext, Scalar)
    ConvertTo(ref ObjectContext)
    | Improve this Doc View Source

    Fields


    OverrideKeyInfoKey

    A key used in properties of serialization contexts to notify whether an override flag should be appened when serializing the key of the related ItemId.

    public static PropertyKey<string> OverrideKeyInfoKey
    Field Value
    Type Description
    PropertyKey<System.String>
    | Improve this Doc View Source

    Methods


    CanVisit(Type)

    public override bool CanVisit(Type type)
    Parameters
    Type Name Description
    System.Type type
    Returns
    Type Description
    System.Boolean
    Overrides
    Stride.Core.Yaml.AssetScalarSerializerBase.CanVisit(System.Type)

    ConvertFrom(ref ObjectContext, Scalar)

    public override object ConvertFrom(ref ObjectContext objectContext, Scalar fromScalar)
    Parameters
    Type Name Description
    Stride.Core.Yaml.Serialization.ObjectContext objectContext
    Stride.Core.Yaml.Events.Scalar fromScalar
    Returns
    Type Description
    System.Object
    Overrides
    Stride.Core.Yaml.Serialization.Serializers.ScalarSerializerBase.ConvertFrom(Stride.Core.Yaml.Serialization.ObjectContext, Stride.Core.Yaml.Events.Scalar)

    ConvertTo(ref ObjectContext)

    public override string ConvertTo(ref ObjectContext objectContext)
    Parameters
    Type Name Description
    Stride.Core.Yaml.Serialization.ObjectContext objectContext
    Returns
    Type Description
    System.String
    Overrides
    ItemIdSerializerBase.ConvertTo(ref ObjectContext)

    Inherited Members

    ItemIdSerializerBase.OverrideInfoKey
    Stride.Core.Yaml.AssetScalarSerializerBase.TryCreate(Stride.Core.Yaml.Serialization.SerializerContext, Stride.Core.Reflection.ITypeDescriptor)
    Stride.Core.Yaml.AssetScalarSerializerBase.Visit(Stride.Core.Reflection.VisitorContext)
    Stride.Core.Yaml.Serialization.Serializers.ScalarSerializerBase.ReadYaml(Stride.Core.Yaml.Serialization.ObjectContext)
    Stride.Core.Yaml.Serialization.Serializers.ScalarSerializerBase.WriteYaml(Stride.Core.Yaml.Serialization.ObjectContext)
    Stride.Core.Yaml.Serialization.Serializers.ScalarSerializerBase.WriteScalar(Stride.Core.Yaml.Serialization.ObjectContext, Stride.Core.Yaml.Serialization.ScalarEventInfo)

    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