C# Class Xenko.Core.Assets.Serializers.IdentifiableObjectSerializer

A serializer for IIdentifiable instances, that can either serialize them directly or as an object reference.
Inheritance: ChainedSerializer
Mostrar archivo Open project: xen2/stride

Public Methods

Method Description
ReadYaml ( ObjectContext &objectContext ) : object
TryCreate ( SerializerContext context, ITypeDescriptor typeDescriptor ) : IYamlSerializable
Visit ( VisitorContext &context ) : void
WriteYaml ( ObjectContext &objectContext ) : void

Private Methods

Method Description
ShouldSerializeAsScalar ( ObjectContext &objectContext ) : bool
TryParse ( string text, Guid &identifier ) : bool

Method Details

ReadYaml() public method

public ReadYaml ( ObjectContext &objectContext ) : object
objectContext ObjectContext
return object

TryCreate() public method

public TryCreate ( SerializerContext context, ITypeDescriptor typeDescriptor ) : IYamlSerializable
context SerializerContext
typeDescriptor ITypeDescriptor
return IYamlSerializable

Visit() public method

public Visit ( VisitorContext &context ) : void
context VisitorContext
return void

WriteYaml() public method

public WriteYaml ( ObjectContext &objectContext ) : void
objectContext ObjectContext
return void