PowerShellFormattingInfo Class |
Namespace: Ookii.FormatC
The PowerShellFormattingInfo type exposes the following members.
Name | Description | |
---|---|---|
PowerShellFormattingInfo |
Initializes a new instance of the PowerShellFormattingInfo class.
|
Name | Description | |
---|---|---|
CaseSensitive |
Gets a value that indicates whether the language to be formatted is case sensitive.
| |
ForceFallbackFormatting |
Gets or sets a value that indicates whether regular expression based formatting should
be used even if System.Management.Automation.PSParser is available.
| |
Patterns |
Gets a list of regular expression patterns used to identify elements of the code.
|
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
FormatCode |
Formats the specified source code.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
This formatter will use System.Management.Automation to tokenize PowerShell code for more accurate formatting. To use this, you must either reference System.Management.Automation in your project, or manually load the assembly and pass it to the constructor.
If the System.Management.Automation.PSParser type could not used, regular expression based formatting will be used and the UsedFallbackFormatting will be set to after the formatting operation.