Open sandboxFocus

Class FormattingOptions

Options that influence the formatting of an object by an IOptionAwareFormatter.

Inheritance
FormattingOptions
Namespace: Flashtrace.Formatters
Assembly: Flashtrace.Formatters.dll
Syntax
public record FormattingOptions : IEquatable<FormattingOptions>
Remarks

This class can be extended by implementations of custom back-end.

It is essential for performance that the implementation respects a semi-singleton pattern, i.e. to keep a single instance of distinct value.

Constructors

Name Description
FormattingOptions(FormattingOptions)

Initializes a new instance of the FormattingOptions class by copying all values from another FormattingOptions.

FormattingOptions(bool)

Options that influence the formatting of an object by an IOptionAwareFormatter.

Properties

Name Description
Default

Gets the default FormattingOptions.

EqualityContract
RequiresUnquotedStrings
Unquoted

Gets the FormattingOptions indicating that string should not be quoted.

Methods

Name Description
Deconstruct(out bool)
Equals(FormattingOptions?)
Equals(object?)
GetHashCode()
PrintMembers(StringBuilder)
ToString()

Operators

Name Description
operator ==(FormattingOptions?, FormattingOptions?)
operator !=(FormattingOptions?, FormattingOptions?)