Class CommonContextualKeywords
Syntax formatting for common keywords that are contextual in nature and not reserved words in the C# language. They will belong to one or more target libraries.
Inherited Members
Namespace: CodeFactory.DotNet.CSharp.FormattedSyntax
Assembly: CodeFactory.DotNet.dll
Syntax
public static class CommonContextualKeywords
Fields
| Improve this Doc View SourceAdd
Keyword to defining a custom event accessor.
Declaration
public const string Add = "add"
Field Value
Type | Description |
---|---|
string |
Alias
Keyword to assign an alias name to reference types in a target assembly.
Declaration
public const string Alias = "alias"
Field Value
Type | Description |
---|---|
string |
Ascending
Keyword to denote an ascending sort order from smallest to largest in an order by clause in a LINQ expression.
Declaration
public const string Ascending = "ascending"
Field Value
Type | Description |
---|---|
string |
Async
Keyword that denotes the method is implemented as an async operation and is always paired with one or more await keywords.
Declaration
public const string Async = "async"
Field Value
Type | Description |
---|---|
string |
Await
Keyword that denotes an async operation is executing and waiting for the result of the operation. Always used with one Async keyword decloration.
Declaration
public const string Await = "await"
Field Value
Type | Description |
---|---|
string |
By
Keyword that is used in a grouping clause how the returned items should be grouped. This is used in LINQ syntax.
Declaration
public const string By = "by"
Field Value
Type | Description |
---|---|
string |
Descending
Keyword to denote an descending sort order from largest to smallest in an order by clause in a LINQ expression.
Declaration
public const string Descending = "descending"
Field Value
Type | Description |
---|---|
string |
Dynamic
Keyword that is used by variables that skips compile time checking.
Declaration
public const string Dynamic = "dynamic"
Field Value
Type | Description |
---|---|
string |
From
Keyword that denotes the source of a an expression. This is used in LINQ expressions.
Declaration
public const string From = "from"
Field Value
Type | Description |
---|---|
string |
Get
Keyword that defines an accessor method for properties or indexers.
Declaration
public const string Get = "get"
Field Value
Type | Description |
---|---|
string |
Global
Keyword that denotes a global scope namespace.
Declaration
public const string Global = "global"
Field Value
Type | Description |
---|---|
string |
Group
Keyword that defines a grouping operation in a LINQ expression.
Declaration
public const string Group = "group"
Field Value
Type | Description |
---|---|
string |
Into
Keyword that creates a temporary named identifier for the results of a group, join or select clause in a LINQ expression.
Declaration
public const string Into = "into"
Field Value
Type | Description |
---|---|
string |
Join
Keyword that defines the start of a join operation in a LINQ expression.
Declaration
public const string Join = "join"
Field Value
Type | Description |
---|---|
string |
KeywordEquals
Keyword that is used in join clauses to denotes the two target values are equal. This is used in LINQ expressions.
Declaration
public const string KeywordEquals = "equals"
Field Value
Type | Description |
---|---|
string |
Let
Keyword that stores the results of a sub expression used in LINQ expressions.
Declaration
public const string Let = "let"
Field Value
Type | Description |
---|---|
string |
NameOf
Keyword operation that gets the name of the variable, type, or member.
Declaration
public const string NameOf = "nameof"
Field Value
Type | Description |
---|---|
string |
On
Keyword using in join operations used to specify a join condition. This is used in LINQ expressions.
Declaration
public const string On = "on"
Field Value
Type | Description |
---|---|
string |
OrderBy
Keyword used to set the return order definition from a LINQ expression.
Declaration
public const string OrderBy = "orderby"
Field Value
Type | Description |
---|---|
string |
Partial
Keyword that defines that a class or method definition will be split across at least two code files.
Declaration
public const string Partial = "partial"
Field Value
Type | Description |
---|---|
string |
Remove
Keyword that defines an event accessor method that removes a subscription from a target event.
Declaration
public const string Remove = "remove"
Field Value
Type | Description |
---|---|
string |
Select
Keyword that defines the collection of data, used in LINQ expressions.
Declaration
public const string Select = "select"
Field Value
Type | Description |
---|---|
string |
Set
Keyword that defines an accessor method for properties and indexers.
Declaration
public const string Set = "set"
Field Value
Type | Description |
---|---|
string |
Value
Keyword that denotes the value that has been passed to a set accessor.
Declaration
public const string Value = "value"
Field Value
Type | Description |
---|---|
string |
Var
Keyword that defines a local variable used within the scope of a method body.
Declaration
public const string Var = "var"
Field Value
Type | Description |
---|---|
string |
When
Keyword that is used a validation condition in switch statements. (Note: Available in C# 7.0 and later). Also used as a validation condition with catch statements. (Note: Available in C# 6.0 and later).
Declaration
public const string When = "when"
Field Value
Type | Description |
---|---|
string |
Where
Keyword used to start the definition of constraining condition on a generic type. Also used a evaluation to determine what data will be returned from a LINQ expression.
Declaration
public const string Where = "where"
Field Value
Type | Description |
---|---|
string |
Yield
Keyword used to denote in an iterator. Used with return and break statements.
Declaration
public const string Yield = "yield"
Field Value
Type | Description |
---|---|
string |