GPAL - Generally Positive Automation Library v1.0
GPAL The Fluent Automation LIbrary
Loading...
Searching...
No Matches
VersionYamlConverter Class Reference

Writes a Version as the string everyone recognizes, "1.2.3.4", and a null as a null. Without this YamlDotNet walks the type's properties and emits a mapping of major, minor, build, revision, majorRevision and minorRevision, with -1 standing in for the parts that were never set. More...

Inheritance diagram for VersionYamlConverter:

Public Member Functions

bool Accepts (Type type)
object ReadYaml (IParser parser, Type type)
object ReadYaml (IParser parser, Type type, ObjectDeserializer rootDeserializer)
void WriteYaml (IEmitter emitter, object value, Type type)
void WriteYaml (IEmitter emitter, object value, Type type, ObjectSerializer serializer)

Detailed Description

Writes a Version as the string everyone recognizes, "1.2.3.4", and a null as a null. Without this YamlDotNet walks the type's properties and emits a mapping of major, minor, build, revision, majorRevision and minorRevision, with -1 standing in for the parts that were never set.

Definition at line 27 of file VersionYamlConverter.cs.

Member Function Documentation

◆ Accepts()

bool VersionYamlConverter.Accepts ( Type type)

Definition at line 29 of file VersionYamlConverter.cs.

◆ ReadYaml() [1/2]

object VersionYamlConverter.ReadYaml ( IParser parser,
Type type )

Definition at line 34 of file VersionYamlConverter.cs.

◆ ReadYaml() [2/2]

object VersionYamlConverter.ReadYaml ( IParser parser,
Type type,
ObjectDeserializer rootDeserializer )

Definition at line 44 of file VersionYamlConverter.cs.

◆ WriteYaml() [1/2]

void VersionYamlConverter.WriteYaml ( IEmitter emitter,
object value,
Type type )

Definition at line 54 of file VersionYamlConverter.cs.

◆ WriteYaml() [2/2]

void VersionYamlConverter.WriteYaml ( IEmitter emitter,
object value,
Type type,
ObjectSerializer serializer )

Definition at line 62 of file VersionYamlConverter.cs.


The documentation for this class was generated from the following file: