CSharpLexicalStateId Class
Contains the lexical state IDs for the C# language.
public class CSharpLexicalStateId : LexicalStateIdProviderBase, ILexicalStateIdProvider, IIdProvider
- Inheritance:
- object LexicalStateIdProviderBase object
- Implements:
- ILexicalStateIdProvider IIdProvider
Remarks
This type was generated by the Actipro Language Designer tool v26.1.0 (http://www.actiprosoftware.com).
Constructors
CSharpLexicalStateId()
Initializes an instance of the class.
public CSharpLexicalStateId()
Properties
MaxId
The maximum ID returned by this provider.
MinId
The minimum ID returned by this provider.
Methods
ContainsId(int)
Returns whether the specified ID value is valid for this ID provider.
public override bool ContainsId(int id)
| Parameter | Type | Description |
|---|---|---|
| id | int | The ID to examine. |
Returns
- bool:
trueif the ID value is valid; otherwise,false
GetDescription(int)
Returns the actual string representation for the specified ID.
public override string? GetDescription(int id)
| Parameter | Type | Description |
|---|---|---|
| id | int | The ID to examine. |
Returns
GetKey(int)
Returns the string-based key for the specified ID.
Fields
Default
The Default lexical state ID.
public const int Default = 10000
DocumentationComment
The DocumentationComment lexical state ID.
public const int DocumentationComment = 10001
InterpolatedString
The InterpolatedString lexical state ID.
public const int InterpolatedString = 10003
InterpolatedStringExpression
The InterpolatedStringExpression lexical state ID.
public const int InterpolatedStringExpression = 10004
PreprocessorDirective
The PreprocessorDirective lexical state ID.
public const int PreprocessorDirective = 10002
Inherited Members
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()