Table of Contents

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
Object
ExceptionDescriptorConverter
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 YamlTextReader

The reader to read from.

typeToConvert Type

The type to convert.

so YamlSerializerOptions

An 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 YamlTextWriter

The writer to write to.

value ExceptionDescriptor

The value to convert to YAML.

so YamlSerializerOptions

An object that specifies serialization options to use.

See Also