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
Afficher le fichier Open project: xen2/stride

Méthodes publiques

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

Private Methods

Méthode Description
ShouldSerializeAsScalar ( ObjectContext &objectContext ) : bool
TryParse ( string text, Guid &identifier ) : bool

Method Details

ReadYaml() public méthode

public ReadYaml ( ObjectContext &objectContext ) : object
objectContext ObjectContext
Résultat object

TryCreate() public méthode

public TryCreate ( SerializerContext context, ITypeDescriptor typeDescriptor ) : IYamlSerializable
context SerializerContext
typeDescriptor ITypeDescriptor
Résultat IYamlSerializable

Visit() public méthode

public Visit ( VisitorContext &context ) : void
context VisitorContext
Résultat void

WriteYaml() public méthode

public WriteYaml ( ObjectContext &objectContext ) : void
objectContext ObjectContext
Résultat void