List of C# reserved keyword

Poster
Posted by Poster under C# category on | Points: 40 | Views : 10715
Here is the list of reserved keyword in C#

Keywords are reserved words by the compiler that you can't use as identifier in your C# program. If you want to use them then you can use it by prefixing with "@"

Keyword in C#

abstract
as
base
bool
break
byte
case
catch
char
checked
class
const
continue
decimal
default
delegate
do
double
else
enum
event
explicit
extern
false
finally
fixed
float
for
forech
goto
if
implicit
in
int
interface
internal
is
lock
long
namespace
new
null
object
operator
out
override
params
private
protected
public
readonly
ref
return
sbyte
sealed
short
sizeof
stackalloc
static
string
struct
switch
this
throw
true
try
typeof
uint
ulong
unchecked
unsafe
ushort
using
virtual
volatile
void
while

Contextual Keywords
A contextual keyword is used to provide a specific meaning in the code, but it is not a reserved keyword in C#.

add
ascending
by
descending
dynamic
equals
from
get
global
group
in
into
join
let
on
orderby
partial
remove
select
set
value
var
where
yield


If I am missing something, please add.

Comments or Responses

Login to post response