Table of Contents

ToYaml Method

Definition

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

descriptor ExceptionDescriptor

The ExceptionDescriptor to extend.

setup Action<YamlFormatterOptions>

The ExceptionDescriptorOptions which may be configured.

Returns

string

A string that represents the specified descriptor.