CSharpParseOptions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This class stores several source parsing related options and offers access to their values.
public ref class CSharpParseOptions sealed : Microsoft::CodeAnalysis::ParseOptions, IEquatable<Microsoft::CodeAnalysis::CSharp::CSharpParseOptions ^>
public sealed class CSharpParseOptions : Microsoft.CodeAnalysis.ParseOptions, IEquatable<Microsoft.CodeAnalysis.CSharp.CSharpParseOptions>
type CSharpParseOptions = class
inherit ParseOptions
interface IEquatable<CSharpParseOptions>
Public NotInheritable Class CSharpParseOptions
Inherits ParseOptions
Implements IEquatable(Of CSharpParseOptions)
- Inheritance
- Implements
Constructors
CSharpParseOptions(LanguageVersion, DocumentationMode, SourceCodeKind, IEnumerable<String>) |
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
CommonWithDocumentationMode(DocumentationMode) | (Inherited from ParseOptions) |
CommonWithFeatures(IEnumerable<KeyValuePair<String,String>>) | (Inherited from ParseOptions) |
CommonWithKind(SourceCodeKind) | |
Equals(CSharpParseOptions) | |
Equals(Object) | |
EqualsHelper(ParseOptions) | (Inherited from ParseOptions) |
GetHashCode() | |
GetHashCodeHelper() | (Inherited from ParseOptions) |
WithDocumentationMode(DocumentationMode) | |
WithFeatures(IEnumerable<KeyValuePair<String,String>>) |
Enable some experimental language features for testing. |
WithKind(SourceCodeKind) | |
WithLanguageVersion(LanguageVersion) | |
WithPreprocessorSymbols(IEnumerable<String>) | |
WithPreprocessorSymbols(ImmutableArray<String>) | |
WithPreprocessorSymbols(String[]) |