Table of Contents

Class ContentReferenceSerializer

Namespace
Stride.Core.Assets.Serializers
Assembly
Stride.Core.Assets.dll
[YamlSerializerFactory(new string[] { "Assets" })]
public class ContentReferenceSerializer : AssetScalarSerializerBase, IYamlSerializable, IYamlSerializableFactory, IDataCustomVisitor
Inheritance
ScalarSerializerBase
AssetScalarSerializerBase
ContentReferenceSerializer
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

Default

public static readonly ContentReferenceSerializer Default

Field Value

ContentReferenceSerializer

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 context, Scalar fromScalar)

Parameters

context ObjectContext
fromScalar Scalar

Returns

object

ConvertTo(ref ObjectContext)

public override string ConvertTo(ref ObjectContext objectContext)

Parameters

objectContext ObjectContext

Returns

string