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

Writes a Guid, and a null Guid?, the way the rest of GPAL writes nulls. Without this YamlDotNet has no handling for the type and renders a null as an empty string, which does not read back as a null. More...

Inheritance diagram for NullableGuidYamlConverter:

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 Guid, and a null Guid?, the way the rest of GPAL writes nulls. Without this YamlDotNet has no handling for the type and renders a null as an empty string, which does not read back as a null.

Definition at line 26 of file NullableGuidYamlConverter.cs.

Member Function Documentation

◆ Accepts()

bool NullableGuidYamlConverter.Accepts ( Type type)

Definition at line 28 of file NullableGuidYamlConverter.cs.

◆ ReadYaml() [1/2]

object NullableGuidYamlConverter.ReadYaml ( IParser parser,
Type type )

Definition at line 33 of file NullableGuidYamlConverter.cs.

◆ ReadYaml() [2/2]

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

Definition at line 43 of file NullableGuidYamlConverter.cs.

◆ WriteYaml() [1/2]

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

Definition at line 53 of file NullableGuidYamlConverter.cs.

◆ WriteYaml() [2/2]

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

Definition at line 61 of file NullableGuidYamlConverter.cs.


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