ToYaml Method
Definition
- Namespace
- Codebelt.Extensions.YamlDotNet.Diagnostics
- Assemblies
- Codebelt.Extensions.YamlDotNet.dll
ToYaml(ExceptionDescriptor, Action<YamlFormatterOptions>)
Converts the specified descriptor to its equivalent string representation.
public static string ToYaml(this ExceptionDescriptor descriptor, Action<YamlFormatterOptions> setup = null)
Parameters
descriptorExceptionDescriptorThe ExceptionDescriptor to extend.
setupAction<YamlFormatterOptions>The ExceptionDescriptorOptions which may be configured.
Returns
- string
A string that represents the specified
descriptor.