Class Keywords
Data class that contains the C# formatted syntax for keywords.
Inherited Members
Namespace: CodeFactory.DotNet.CSharp.FormattedSyntax
Assembly: CodeFactory.DotNet.dll
Syntax
public static class Keywords
Fields
| Improve this Doc View SourceAbstract
Keyword for an abstraction
Declaration
public const string Abstract = "abstract"
Field Value
Type | Description |
---|---|
string |
As
Keyword for type conversion using an 'as' statement
Declaration
public const string As = "as"
Field Value
Type | Description |
---|---|
string |
Base
Keyword for usage of the base keyword used with constructors
Declaration
public const string Base = "base"
Field Value
Type | Description |
---|---|
string |
Break
Keyword for exiting a running loop.
Declaration
public const string Break = "break"
Field Value
Type | Description |
---|---|
string |
Case
Keyword for a particular item to be evaluated in a switch statement.
Declaration
public const string Case = "case"
Field Value
Type | Description |
---|---|
string |
Catch
Keyword that captures an exception used with a try statement.
Declaration
public const string Catch = "catch"
Field Value
Type | Description |
---|---|
string |
Checked
Keyword to check math operations are within bounds of the target type.
Declaration
public const string Checked = "checked"
Field Value
Type | Description |
---|---|
string |
Class
Keyword that defines a class.
Declaration
public const string Class = "class"
Field Value
Type | Description |
---|---|
string |
Constant
Keyword that denotes the field is a constant value.
Declaration
public const string Constant = "const"
Field Value
Type | Description |
---|---|
string |
Continue
Keyword that manages control flow in a loop and tell the control to continue operation at the beginning of the loop.
Declaration
public const string Continue = "continue"
Field Value
Type | Description |
---|---|
string |
Default
Keyword to denote the default label in a switch statement, also used to return the default value of a type.
Declaration
public const string Default = "default"
Field Value
Type | Description |
---|---|
string |
Delegate
Keyword to know the definition of a delegate method.
Declaration
public const string Delegate = "delegate"
Field Value
Type | Description |
---|---|
string |
Do
Keyword to define an expression check to be true in order for the loop to continue execution.
Declaration
public const string Do = "do"
Field Value
Type | Description |
---|---|
string |
Else
Keyword to cause execution of an alternate set of logic when an if statement is not true.
Declaration
public const string Else = "else"
Field Value
Type | Description |
---|---|
string |
Enum
Keyword to begin the definition of an enumeration type.
Declaration
public const string Enum = "enum"
Field Value
Type | Description |
---|---|
string |
Event
Keyword to begin the definition of an event.
Declaration
public const string Event = "event"
Field Value
Type | Description |
---|---|
string |
Explicit
Keyword that denotes a data conversion that can throw an error or lose information.
Declaration
public const string Explicit = "explicit"
Field Value
Type | Description |
---|---|
string |
Extern
Keyword used to declare a method that is implemented in an externally accessed library. (Used with DLL imports)
Declaration
public const string Extern = "extern"
Field Value
Type | Description |
---|---|
string |
False
Keyword that notes a false statement for a Boolean data type.
Declaration
public const string False = "false"
Field Value
Type | Description |
---|---|
string |
Finally
Keyword to force the execution of statement after try and catch blocks have executed.
Declaration
public const string Finally = "finally"
Field Value
Type | Description |
---|---|
string |
Fixed
Keyword to keep the garbage collector from moving a variable. Generally used with external api and unmanaged calls.
Declaration
public const string Fixed = "fixed"
Field Value
Type | Description |
---|---|
string |
For
Keyword to define a for loop.
Declaration
public const string For = "for"
Field Value
Type | Description |
---|---|
string |
ForEach
Keyword to define a for each loop.
Declaration
public const string ForEach = "foreach"
Field Value
Type | Description |
---|---|
string |
Goto
Keyword that informs where the logic execution will move to.
Declaration
public const string Goto = "goto"
Field Value
Type | Description |
---|---|
string |
If
Keyword that starts an evaluation to determine if a statement is true.
Declaration
public const string If = "if"
Field Value
Type | Description |
---|---|
string |
Implicit
Keyword used to declare a data conversion that is safe and will not throw an error or lose data.
Declaration
public const string Implicit = "implicit"
Field Value
Type | Description |
---|---|
string |
In
Keyword used in 4 cases, generic type parameters , a parameter modifer to pass arguments, define the target value in for each statements, usage in from clauses, and in join clauses.
Declaration
public const string In = "in"
Field Value
Type | Description |
---|---|
string |
Interface
Keyword that starts the definition of a interface type.
Declaration
public const string Interface = "interface"
Field Value
Type | Description |
---|---|
string |
Is
Keyword that checks if an expression is compatible with a target type.
Declaration
public const string Is = "is"
Field Value
Type | Description |
---|---|
string |
Lock
Keyword that starts the execution of code that can be accessed by one thread at a time.
Declaration
public const string Lock = "lock"
Field Value
Type | Description |
---|---|
string |
Namespace
Keyword that defines the namespace the following code definitions belong to.
Declaration
public const string Namespace = "namespace"
Field Value
Type | Description |
---|---|
string |
New
Keyword that defines the new instance of a data type.
Declaration
public const string New = "new"
Field Value
Type | Description |
---|---|
string |
Null
Keyword that defines a reference type does not exist and has no memory reference.
Declaration
public const string Null = "null"
Field Value
Type | Description |
---|---|
string |
Operator
Keyword that starts a custom definition of operation for the target type.
Declaration
public const string Operator = "operator"
Field Value
Type | Description |
---|---|
string |
Out
Keyword that signals that a passed parameter will receive an output of data. Also used with generic definitions to note the type parameter is covariant.
Declaration
public const string Out = "out"
Field Value
Type | Description |
---|---|
string |
Override
Keyword that signals that an extension or modification of methods, properties, indexers, or events.
Declaration
public const string Override = "override"
Field Value
Type | Description |
---|---|
string |
Params
Keyword that signals that a method parameter will be taking on a variable number of additional arguments of the target type.
Declaration
public const string Params = "params"
Field Value
Type | Description |
---|---|
string |
Readonly
Keyword that notes a field cannot be changed once the constructor has run.
Declaration
public const string Readonly = "readonly"
Field Value
Type | Description |
---|---|
string |
Ref
Keyword to note the value was passed by reference.
Declaration
public const string Ref = "ref"
Field Value
Type | Description |
---|---|
string |
Return
Keyword to return a target set of data from the executing method body.
Declaration
public const string Return = "return"
Field Value
Type | Description |
---|---|
string |
Sealed
Keyword to lock the definition from being inherited by other classes.
Declaration
public const string Sealed = "sealed"
Field Value
Type | Description |
---|---|
string |
SizeOf
Keyword operator that returns the number of bytes occupied by the variable.
Declaration
public const string SizeOf = "sizeof"
Field Value
Type | Description |
---|---|
string |
StackAlloc
Keyword allocates memory during execution of a method and removes at the end of the execution of the method. Allocated directly from the stack.
Declaration
public const string StackAlloc = "stackalloc"
Field Value
Type | Description |
---|---|
string |
Static
Keyword that declares a static member that belongs to the type and not to an instance of the type.
Declaration
public const string Static = "static"
Field Value
Type | Description |
---|---|
string |
Structure
Keyword that declares the creation of a structure.
Declaration
public const string Structure = "struct"
Field Value
Type | Description |
---|---|
string |
Switch
Keyword that declares a switch statement.
Declaration
public const string Switch = "switch"
Field Value
Type | Description |
---|---|
string |
This
Keyword that references the current instance of the hosting class.
Declaration
public const string This = "this"
Field Value
Type | Description |
---|---|
string |
Throw
Keyword that raises an instance of a target exception.
Declaration
public const string Throw = "throw"
Field Value
Type | Description |
---|---|
string |
True
Keyword that is a true condition in a Boolean data type.
Declaration
public const string True = "true"
Field Value
Type | Description |
---|---|
string |
Try
Keyword that is the start of a try block.
Declaration
public const string Try = "try"
Field Value
Type | Description |
---|---|
string |
TypeOf
Keyword that determines gets the type definition of the object.
Declaration
public const string TypeOf = "typeof"
Field Value
Type | Description |
---|---|
string |
UnChecked
Keyword to suppress overflow checking in arithmetic operations and conversions.
Declaration
public const string UnChecked = "unchecked"
Field Value
Type | Description |
---|---|
string |
UnSafe
Keyword to note this call access pointers and is unsafe for memory collection.
Declaration
public const string UnSafe = "unsafe"
Field Value
Type | Description |
---|---|
string |
Using
Keyword directive to note a target namespace that is used in the scope of a code file.
Declaration
public const string Using = "using"
Field Value
Type | Description |
---|---|
string |
UsingStatic
Keyword directive to a static type where the static members and nested type can be accessed without specifying the type.
Declaration
public const string UsingStatic = "using static"
Field Value
Type | Description |
---|---|
string |
Virtual
Keyword to note that a method, property, indexer, or event can be overridden.
Declaration
public const string Virtual = "virtual"
Field Value
Type | Description |
---|---|
string |
Void
Keyword that notes that the method will not return a value.
Declaration
public const string Void = "void"
Field Value
Type | Description |
---|---|
string |
Volatile
Keyword that determines a field can be modified by multiple threads during execution at the same time.
Declaration
public const string Volatile = "volatile"
Field Value
Type | Description |
---|---|
string |
While
Keyword that continues execution of a code block while the evaluation statement is true.
Declaration
public const string While = "while"
Field Value
Type | Description |
---|---|
string |