Namespace Codebelt.Extensions.YamlDotNet.Converters
Create custom YAML converters for domain types and diagnostic objects.
The Codebelt.Extensions.YamlDotNet.Converters namespace provides abstract YamlConverter base classes and factory methods for building type-specific YAML serializers. Use this namespace to handle specialized serialization logic for diagnostics (like Failure exceptions) and other domain types that need custom YAML representation.
Availability: .NET 10, .NET 9 and .NET Standard 2.0
Start with: YamlConverter base class to build custom converters, or use YamlConverterFactory to create converters with delegates.
When to use:
- Create custom converters for domain types that need special YAML formatting
- Register exception and failure converters in the YAML formatter
- Build converters that wrap low-level
IEmitterevents into readable YAML structures
Related: Codebelt.Extensions.YamlDotNet · Codebelt.Extensions.YamlDotNet.Formatters
Extension Members
| Type | Ext | Methods |
|---|---|---|
| ICollection<YamlConverter> | ⬇️ | AddFailureConverter |
Classes
- ExceptionConverter
Converts an Exception to YAML.
- ExceptionDescriptorConverter
Converts an ExceptionDescriptor to YAML.
- YamlConverter
Converts an object to and from YAML (YAML ain't markup language).
- YamlConverterExtensions
Extension methods for the YamlConverter class.
- YamlConverter<T>
Converts an object to or from YAML (YAML ain't markup language).