C# programming language defines a few keywords that have a special meaning for the compiler. When you chose your variables, classes, methods names, you must be careful to avoid using these C# keywords, or you will get compiler errors, and your program will not compile.
Here is a list of C# keywords:
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
abstract add as ascending
async await base bool
break by byte case
catch char checked class
const continue decimal default
delegate descending do double
dynamic else enum equals
explicit extern false finally
fixed float for foreach
from get global goto
group if implicit in
int interface internal into
is join let lock
long namespace new null
object on operator orderby
out override params partial
private protected public readonly
ref remove return sbyte
sealed select set short
sizeof stackalloc static string
struct switch this throw
true try typeof uint
ulong unchecked unsafe ushort
using value var virtual
void volatile where while
yield
|
The concepts explained in this lesson are also shown visually as part of the following video: