Class KeyWithIdSerializer
A Yaml serializer for IKeyWithId.
[YamlSerializerFactory(new string[] { "Assets" })]
public class KeyWithIdSerializer : ItemIdSerializerBase, IYamlSerializable, IYamlSerializableFactory, IDataCustomVisitor
- Inheritance
-
ScalarSerializerBaseAssetScalarSerializerBaseKeyWithIdSerializer
- Implements
-
IYamlSerializableIYamlSerializableFactoryIDataCustomVisitor
- 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
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
ObjectContextfromScalar
Scalar
Returns
ConvertTo(ref ObjectContext)
public override string ConvertTo(ref ObjectContext objectContext)
Parameters
objectContext
ObjectContext