Table of Contents

Class IdentifiableObjectSerializer

Namespace
Stride.Core.Assets.Serializers
Assembly
Stride.Core.Assets.dll

A serializer for IIdentifiable instances, that can either serialize them directly or as an object reference.

public sealed class IdentifiableObjectSerializer : ChainedSerializer, IYamlSerializable
Inheritance
ChainedSerializer
IdentifiableObjectSerializer
Implements
IYamlSerializable
Inherited Members
ChainedSerializer.Prev
ChainedSerializer.Next
ChainedSerializer.First
ChainedSerializer.Last
ChainedSerializer.FindPrevious<T>()
ChainedSerializer.FindNext<T>()
ChainedSerializer.Prepend(ChainedSerializer)
ChainedSerializer.Append(ChainedSerializer)

Fields

Prefix

public const string Prefix = "ref!! "

Field Value

string

Methods

ReadYaml(ref ObjectContext)

Reads this object's state from a YAML parser.

public override object ReadYaml(ref ObjectContext objectContext)

Parameters

objectContext ObjectContext

Returns

object

A instance of the object deserialized from Yaml.

TryCreate(SerializerContext, ITypeDescriptor)

public IYamlSerializable TryCreate(SerializerContext context, ITypeDescriptor typeDescriptor)

Parameters

context SerializerContext
typeDescriptor ITypeDescriptor

Returns

IYamlSerializable

Visit(ref VisitorContext)

public void Visit(ref VisitorContext context)

Parameters

context VisitorContext

WriteYaml(ref ObjectContext)

Writes the specified object context to a YAML emitter.

public override void WriteYaml(ref ObjectContext objectContext)

Parameters

objectContext ObjectContext

The object context.