Lire en anglais

Partager via


CSharpParseOptions Class

Definition

This class stores several source parsing related options and offers access to their values.

C#
public sealed class CSharpParseOptions : Microsoft.CodeAnalysis.ParseOptions, IEquatable<Microsoft.CodeAnalysis.CSharp.CSharpParseOptions>
Inheritance
CSharpParseOptions
Implements

Constructors

Properties

Default

The default parse options.

DocumentationMode

Gets a value indicating whether the documentation comments are parsed and analyzed.

(Inherited from ParseOptions)
Errors

Errors collection related to an incompatible set of parse options

(Inherited from ParseOptions)
Features
Kind

Specifies whether to parse as regular code files, script files or interactive code.

(Inherited from ParseOptions)
Language
LanguageVersion

Gets the effective language version, which the compiler uses to select the language rules to apply to the program.

PreprocessorSymbolNames

Gets the names of defined preprocessor symbols.

SpecifiedKind

Gets the specified source code kind, which is the value that was specified in the call to the constructor, or modified using the WithKind(SourceCodeKind) method.

(Inherited from ParseOptions)
SpecifiedLanguageVersion

Gets the specified language version, which is the value that was specified in the call to the constructor, or modified using the WithLanguageVersion(LanguageVersion) method, or provided on the command line.

Methods

Applies to

Produit Versions
Roslyn 4.2.0, 4.3.0, 4.4.0, 4.5.0, 4.6.0, 4.7.0, 4.8.0, 4.9.2, 3.0.0, 3.1.0, 3.2.0, 3.2.1, 3.3.1, 3.4.0, 3.5.0, 3.6.0, 3.7.0, 3.8.0, 3.9.0, 3.10.0, 3.11.0, 4.0.1, 4.1.0, 4.12.2, 4.13.0