Use the long reserved word as a variable name in C#
Posted
by Mark Pearl
on Stack Overflow
See other posts from Stack Overflow
or by Mark Pearl
Published on 2010-05-07T10:06:58Z
Indexed on
2010/05/07
10:08 UTC
Read the original article
Hit count: 269
c#
Hi... a bit of an unusual one.. but I was wondering if anyone knew how I could declare a reserved word as a variable. I have the following code, but it does not like my use of the long variable name. I know I could rename it, but for instrest sakes I would like to know if this is at all possible.
private string lat;
private string long;
public string Lat
{
get
{
return lat;
}
}
public string Long
{
get
{
return long;
}
}
© Stack Overflow or respective owner