Post

1 Star2 Stars3 Stars4 Stars5 Stars
Loading ... Loading ...

By Rafaela Azevedo
Some words have special meaning for the compiler C#. These can’t are using how identifiers, at least that using the “@” before of same.
Ex.: @if is an identifier accepts, but IF don’t, because is an word reserved.WORS RESERVED IN C#:

abstract
event
new
struct

as
explicit
null
switch

base
extern
object
this

bool
false
operator
throw

break
finally
out
true

byte
fixed
override
try

case
float
params
typeof

catch
for
private
uint

char
foreach
protected
ulong

checked
goto
public
unchecked

class
if
readonly
unsafe

const
implicit
ref
ushort

continue
in
return
using

decimal
int
sbyte
virtual

default
interface
sealed
volatile

delegate
internal
short
void

do
is
sizeof
while

double
lock
stackalloc

else
long
static

enum
namespace
string

Source: http://azevedorafaela.wordpress.com/2011/03/26/words-reserved-in-c-keywords/

Category: Programming, QA, Test and Automation Stuffs

Você também pode querer ler

Comments are off for this post.