Click or drag to resize

SyntaxFacts Class



Defines a set of methods to determine how Unicode characters are treated by the C# compiler.
Inheritance Hierarchy
SystemObject
  Microsoft.CodeAnalysis.CSharpSyntaxFacts

Namespace:  Microsoft.CodeAnalysis.CSharp
Assembly:  Microsoft.CodeAnalysis.CSharp (in Microsoft.CodeAnalysis.CSharp.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
public static class SyntaxFacts

The SyntaxFacts type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberEqualityComparer
A custom equality comparer for SyntaxKind
Top
Methods
  NameDescription
Public methodStatic memberGetAccessorDeclarationKind
Public methodStatic memberGetAssignmentExpression
Public methodStatic memberGetBaseTypeDeclarationKind
Public methodStatic memberGetBinaryExpression
Public methodStatic memberGetCheckStatement
Public methodStatic memberGetContextualKeywordKind
Public methodStatic memberGetContextualKeywordKinds
Public methodStatic memberGetInstanceExpression
Public methodStatic memberGetKeywordKind
Public methodStatic memberGetKeywordKinds
Public methodStatic memberGetLiteralExpression
Public methodStatic memberGetOperatorKind
Public methodStatic memberGetPostfixUnaryExpression
Public methodStatic memberGetPrefixUnaryExpression
Public methodStatic memberGetPreprocessorKeywordKind
Public methodStatic memberGetPreprocessorKeywordKinds
Public methodStatic memberGetPrimaryFunction
Public methodStatic memberGetPunctuationKinds
Public methodStatic memberGetReservedKeywordKinds
Public methodStatic memberGetSwitchLabelKind
Public methodStatic memberGetText(Accessibility)
Public methodStatic memberGetText(SyntaxKind)
Public methodStatic memberGetTypeDeclarationKind
Public methodStatic memberIsAccessibilityModifier
Public methodStatic memberIsAccessorDeclaration
Public methodStatic memberIsAccessorDeclarationKeyword
Public methodStatic memberIsAliasQualifier
Returns true if the node is the alias of an AliasQualifiedNameSyntax
Public methodStatic memberIsAnyOverloadableOperator
Public methodStatic memberIsAnyToken
Public methodStatic memberIsAnyUnaryExpression
Public methodStatic memberIsAssignmentExpression
Public methodStatic memberIsAssignmentExpressionOperatorToken
Public methodStatic memberIsAttributeName
Public methodStatic memberIsAttributeTargetSpecifier
Public methodStatic memberIsBinaryExpression
Public methodStatic memberIsBinaryExpressionOperatorToken
Public methodStatic memberIsContextualKeyword
Public methodStatic memberIsDocumentationCommentTrivia
Public methodStatic memberIsFixedStatementExpression
Is the expression the initializer in a fixed statement?
Public methodStatic memberIsGlobalMemberDeclaration
Member declarations that can appear in global code (other than type declarations).
Public methodStatic memberIsIdentifierPartCharacter
Returns true if the Unicode character can be a part of a C# identifier.
Public methodStatic memberIsIdentifierStartCharacter
Returns true if the Unicode character can be the starting character of a C# identifier.
Public methodStatic memberIsIndexed
Returns true if the node is the object of an element access expression.
Public methodStatic memberIsInNamespaceOrTypeContext
Returns true if a node is in a tree location that is expected to be either a namespace or type
Public methodStatic memberIsInstanceExpression
Public methodStatic memberIsInTypeOnlyContext
Returns true if the node is in a tree location that is expected to be a type
Public methodStatic memberIsInvoked
Returns true if the node is the object of an invocation expression.
Public methodStatic memberIsKeywordKind
Public methodStatic memberIsLambdaBody Obsolete.
Public methodStatic memberIsLanguagePunctuation
Public methodStatic memberIsLiteralExpression
Public methodStatic memberIsName
Public methodStatic memberIsNamedArgumentName
Is the node the name of a named argument of an invocation, object creation expression, constructor initializer, or element access, but not an attribute.
Public methodStatic memberIsNamespaceAliasQualifier
Public methodStatic memberIsNamespaceMemberDeclaration
Public methodStatic memberIsNewLine
Returns true if the Unicode character is a newline character.
Public methodStatic memberIsOverloadableBinaryOperator
Public methodStatic memberIsOverloadableUnaryOperator
Public methodStatic memberIsPostfixUnaryExpression
Public methodStatic memberIsPostfixUnaryExpressionToken
Public methodStatic memberIsPredefinedType
Public methodStatic memberIsPrefixUnaryExpression
Public methodStatic memberIsPrefixUnaryExpressionOperatorToken
Public methodStatic memberIsPreprocessorDirective
Public methodStatic memberIsPreprocessorKeyword
Public methodStatic memberIsPreprocessorPunctuation
Public methodStatic memberIsPrimaryFunction
Public methodStatic memberIsPunctuation
Public methodStatic memberIsPunctuationOrKeyword
Public methodStatic memberIsQueryContextualKeyword
Public methodStatic memberIsReservedKeyword
Public methodStatic memberIsTrivia
Public methodStatic memberIsTypeDeclaration
Public methodStatic memberIsTypeParameterVarianceKeyword
Public methodStatic memberIsTypeSyntax
Public methodStatic memberIsUnaryOperatorDeclarationToken
Public methodStatic memberIsValidIdentifier
Check that the name is a valid identifier.
Public methodStatic memberIsWhitespace
Returns true if the Unicode character represents a whitespace.
Top
See Also