C# Reserve Keyword
C# has reserved keywords that have specific meanings and cannot be used as identifiers (like variable or method names) in your code because they are already used by the C# language.
Here's a list of reserved keywords in C# group by categories.
Modifier Keywords
abstract async const event extern new override
partial readonly sealed static unsafe virtual volatile
Access Modifier Keywords
public private internal protected
Method Parameter Keywords
params ref out
Statement Keywords
if else switch case do for foreach in while break continue
default goto return yield throw try catch finally checked
unchecked fixed lock
Access Keywords
base this
Operator Keywords
as await is new sizeof typeof stackalloc
checked unchecked
Namespace Keywords
using . operator :: operator extern alias
Literal Keywords
null false true value void
Type Keywords
bool byte char class decimal double enum float
int long sbyte short string struct uint ulong ushort
Query Keywords
from where select group into orderby join let
in on equals by ascending descending
Contextual Keyword
add var dynamic global set value