Class YamlEnumTypeConverter
Custom YAML type converter for enum support
Inheritance
YamlEnumTypeConverter
Implements
IYamlTypeConverter
Assembly: PayrollEngine.Client.Core.dll
Syntax
public class YamlEnumTypeConverter : IYamlTypeConverter
Constructors
YamlEnumTypeConverter()
Declaration
public YamlEnumTypeConverter()
Methods
Accepts(Type)
Declaration
public bool Accepts(Type type)
Parameters
| Type |
Name |
Description |
| Type |
type |
|
Returns
ReadYaml(IParser, Type, ObjectDeserializer)
Declaration
public object ReadYaml(IParser parser, Type type, ObjectDeserializer serializer)
Parameters
| Type |
Name |
Description |
| IParser |
parser |
|
| Type |
type |
|
| ObjectDeserializer |
serializer |
|
Returns
WriteYaml(IEmitter, object, Type, ObjectSerializer)
Declaration
public void WriteYaml(IEmitter emitter, object value, Type type, ObjectSerializer serializer)
Parameters
| Type |
Name |
Description |
| IEmitter |
emitter |
|
| object |
value |
|
| Type |
type |
|
| ObjectSerializer |
serializer |
|
Implements
YamlDotNet.Serialization.IYamlTypeConverter
Extension Methods