PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Formatters Namespace / Formatting­Options Class

FormattingOptions Class

Options that influence the formatting of an object by an IOptionAwareFormatter.
Inheritance Hierarchy
System.Object
  PostSharp.Patterns.Formatters.FormattingOptions

Namespace:  PostSharp.Patterns.Formatters
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 2023.0.3.0 (2023.0.3.0)
Syntax
C#
public class FormattingOptions

The FormattingOptions type exposes the following members.

Constructors
  NameDescription
Protected methodFormattingOptions
Initializes a new instance of FormattingOptions by copying all values from another FormattingOptions.
Properties
  NameDescription
Public propertyStatic memberDefault
Gets the default FormattingOptions.
Public propertyRequiresUnquotedStrings
Gets a value indicating whether the formatters should not use quotation when formatting strings.
Public propertyStatic memberUnquoted
Gets the FormattingOptions indicating that string should not be quoted.
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.

See Also