Table of Contents

Class KeyWithIdSerializer

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

A Yaml serializer for IKeyWithId.

[YamlSerializerFactory(new string[] { "Assets" })]
public class KeyWithIdSerializer : ItemIdSerializerBase, IYamlSerializable, IYamlSerializableFactory, IDataCustomVisitor
Inheritance
ScalarSerializerBase
AssetScalarSerializerBase
KeyWithIdSerializer
Implements
IYamlSerializable
IYamlSerializableFactory
IDataCustomVisitor
Inherited Members
AssetScalarSerializerBase.TryCreate(SerializerContext, ITypeDescriptor)
AssetScalarSerializerBase.Visit(ref VisitorContext)
ScalarSerializerBase.ReadYaml(ref ObjectContext)
ScalarSerializerBase.WriteYaml(ref ObjectContext)
ScalarSerializerBase.WriteScalar(ref ObjectContext, ScalarEventInfo)

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

PropertyKey<string>

Methods

CanVisit(Type)

Determines whether this instance can visit the specified object.

public override bool CanVisit(Type type)

Parameters

type Type

Returns

bool

true if this instance can visit the specified object; otherwise, false.

ConvertFrom(ref ObjectContext, Scalar)

public override object ConvertFrom(ref ObjectContext objectContext, Scalar fromScalar)

Parameters

objectContext ObjectContext
fromScalar Scalar

Returns

object

ConvertTo(ref ObjectContext)

public override string ConvertTo(ref ObjectContext objectContext)

Parameters

objectContext ObjectContext

Returns

string