Reserve word in C#.net

Keywords in C#.net

C#.net have 77 Reserve word. You are not declare variable/method in reserve words .if you want to declare reserved word you can use " @ " symbol.

Example:

private void btn_Click(object sender, EventArgs e)
{
string string="Welocme to DevEnvExe"
}
Suppose if you want use above coding
private void btn_Click(object sender, EventArgs e)
{
string @string="Welocme to DevEnvExe"
}
Below list are C#.net reserve words
unchecked
unsafe
ushort
boolirtual
class
abstract
as
base
byte
char
decimal
int
sbyte
uint
ulong
break
case
catch
finally
checked
const
continue
default
delegate
do
double
else
enum
event
explicit
extern
false
fixed
float
for
foreach
goto
if
implicit
in
interface
internal
is
lock
long
namespace
new
null
object
operator
out
override
params
private
protected
public
readonly
ref
return
sealed
short
sizeof
stackalloc
static
string
struct
switch
while
this
throw
true
try
typeof
using
void
volatile





0 Comments

Featured Post

Improving C# Performance by Using AsSpan and Avoiding Substring

During development and everyday use, Substring is often the go-to choice for string manipulation. However, there are cases where Substring c...

MSDEVBUILD - English Channel

MSDEVBUILD - Tamil Channel

Popular Posts