Class ExceptionDescriptorConverter
- Namespace
- Cuemon.Text.Yaml.Converters
- Assembly
- Cuemon.Core.dll
Converts an ExceptionDescriptor to or from YAML.
[Obsolete("All YAML marshalling has been moved to its own assembly; Cuemon.Extensions.YamlDotNet. This member will be removed with next major version.")]
public class ExceptionDescriptorConverter : YamlConverter<ExceptionDescriptor>
- Inheritance
-
ObjectExceptionDescriptorConverter
- Inherited Members
- Extension Methods
Constructors
ExceptionDescriptorConverter(Action<ExceptionDescriptorOptions>)
Initializes a new instance of the ExceptionDescriptorConverter class.
public ExceptionDescriptorConverter(Action<ExceptionDescriptorOptions> setup = null)
Parameters
setup
Action<ExceptionDescriptorOptions>The ExceptionDescriptorOptions which may be configured.
Methods
ReadYaml(YamlTextReader, Type, YamlSerializerOptions)
Reads and converts the YAML to ExceptionDescriptor.
public override ExceptionDescriptor ReadYaml(YamlTextReader reader, Type typeToConvert, YamlSerializerOptions so)
Parameters
reader
YamlTextReaderThe reader to read from.
typeToConvert
TypeThe type to convert.
so
YamlSerializerOptionsAn object that specifies serialization options to use.
Returns
- ExceptionDescriptor
The converted value.
Exceptions
- System.NotImplementedException
WriteYaml(YamlTextWriter, ExceptionDescriptor, YamlSerializerOptions)
Writes a specified value
as YAML.
public override void WriteYaml(YamlTextWriter writer, ExceptionDescriptor value, YamlSerializerOptions so)
Parameters
writer
YamlTextWriterThe writer to write to.
value
ExceptionDescriptorThe value to convert to YAML.
so
YamlSerializerOptionsAn object that specifies serialization options to use.