aHmeD eL-kiLaNi
Official website - technical weblog - Microsoft .Net technologies resources, news and tutorials.
Search
Include comments in search
The Weblog
Archive
Contact
Sign in
Subscribe
Aug
26
Declare variables in the same name as a reserved keyword in C#
Posted By Ahmed El-Kilani On 26 Aug 2009
No Comments »
An interesting way to declare a variable in the same name as a reserved keyword in C# by prefixing @ before the variable name: Example:
int @int = 0;
This creates a variable name int holding the value 0.
ccf0e843-9f7f-4e1b-bc8e-138481bcd0cd|2|3.0
Recent Posts
BlogEngine extension to ignore duplicate comments
Rating: 5 / 2
YUI 3.0.0 From Yahoo!
Rating: 0 / 0
BlogEngine.NET SendMailMessage issue
Rating: 5 / 2
Workaround for .Net CF Not supported BeginInvoke method
Rating: 5 / 1
Declare variables in the same name as a reserved keyword in C#
Rating: 3 / 2
Modal Ajax UpdateProgress Control
Rating: 5 / 2
Month List
2009
September (3)
August (2)
2008
May (1)
April (2)
March (1)
February (2)
January (7)
2007
December (4)
November (2)
August (2)
July (1)
Categories
.Net CF
ASP .Net
CSharp .Net
Database
Graphic/Media tools
HTML/Javascript
Visual Studio
WinForms/APIs
Profile
Tag Cloud
.net cf
@ variable name
asynchronous call
blogengine
c#
callback result
css
delegate begininvoke
duplicate comments
extension
fix sendmail
godaddy smtp
ignore comments
javascript
mail issue
multithreading
not supported
notsupportedexception
reserved keyword
validate comments
variable
yahoo
yui
Blogroll
The Moth
DirectCompute Lectures
Are you a GPGPU develop...
User eXperience
Windows Mobile Team
Windows Mobile Blog: Mo...
SDK, DTK, DRK: WTF?!
Getting started with wi...
Nikhilk
Thoughts on WebMatrix
Config-free IHttpModule...
RIA Services and Authen...
Peter Foot
WPH303 Triskaidekaphobi...
DataContractSerializer...
Review: .NET Compact Fr...