FormattingOptions Class |
Options that influence the formatting of an object by an IOptionAwareFormatter.
Namespace: PostSharp.Patterns.Formatters
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public class FormattingOptions
The FormattingOptions type exposes the following members.
Name | Description | |
---|---|---|
FormattingOptions |
Initializes a new instance of FormattingOptions by copying all values from another FormattingOptions.
|
Name | Description | |
---|---|---|
Default |
Gets the default FormattingOptions.
| |
RequiresUnquotedStrings |
Gets a value indicating whether the formatters should not use quotation when formatting strings.
| |
Unquoted |
Gets the FormattingOptions indicating that string should not be quoted.
|
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.