Thursday, June 24, 2010

Verbatim Identifiers in C#

Not that many people realize that in C#, one can use language keyword names like "void" and "bool" for their identifiers.
The trick is, you need to prefix the name i.e.:

 void @void() {}

declares method named "void".

Of course you would rarely use this feature, if ever but many people start arguing "Why Microsoft did this to begin with?"

I am personally 100% on-board with MS on this one, - not only this is a good practice to be consistent in language design (less limitations) by allowing programmer to use any name
 but this is a must-have feature i.e. you may code an assembly in Delphi Prism( as an example) and call a method "void" -
 then you'd need to consume it in C#. "void" is not a keyword in that language.

I personally think that purposely naming you stuff with "dangerous" names is a bad thing, but having verbatim name capability makes us feel more liberated :)


29 comments:

Anonymous said...

Adeline ROCKS?!

Sharon

Anonymous said...

Hey, I can't view your site properly within Opera, I actually hope you look into fixing this.

Anonymous said...

спасибо друг

Anonymous said...

Keep posting stuff like this i really like it

Anonymous said...

Couldnt agree more with that, very attractive article

Anonymous said...

I just added your blog site to my blogroll, I pray you would give some thought to doing the same.

Anonymous said...

Superb blog post, I have book marked this internet site so ideally I’ll see much more on this subject in the foreseeable future!

Anonymous said...

Finally, an issue that I am passionate about. I have looked for information of this caliber for the last several hours. Your site is greatly appreciated.

Anonymous said...

learned a lot

Anonymous said...

Wow this is a great resource.. I’m enjoying it.. good article

oakleyses said...

louboutin outlet, michael kors handbags clearance, air jordan, oakley vault, burberry outlet online, kate spade handbags, louis vuitton handbags, michael kors outlet online, ray ban sunglasses, cheap oakley sunglasses, michael kors outlet online, toms shoes, prada outlet, true religion outlet, jordan shoes, coach purses, longchamp handbags, michael kors outlet, polo ralph lauren outlet online, coach outlet store online, nike free, tiffany and co, polo ralph lauren outlet, prada handbags, oakley sunglasses, nike air max, longchamp handbags, true religion, nike free, kate spade outlet, nike shoes, tory burch outlet, nike air max, louis vuitton outlet online, coach outlet, coach factory outlet, true religion jeans, ray ban sunglasses outlet, air max, longchamp outlet, air max, gucci outlet, louboutin, cheap michael kors, chanel handbags

oakleyses said...

lululemon outlet, ray ban, nike roshe, mont blanc, converse shoes, karen millen, michael kors, roshe run, nfl jerseys, nike huarache, birkin bag, beats by dre, mac cosmetics, hogan, louboutin, converse pas cher, ray ban pas cher, montre pas cher, michael kors, vans, north face jackets, lululemon, oakley pas cher, north face outlet, reebok outlet, michael kors, nike free, ralph lauren, nike trainers, louis vuitton, louis vuitton, hollister, hermes, timberland, abercrombie and fitch, supra shoes, new balance shoes, juicy couture outlet, mulberry, air max, lancel, hollister, north face, rolex watches, juicy couture outlet, burberry, wedding dresses, new balance pas cher, abercrombie and fitch, nike air max

oakleyses said...

nike air max, air max pas cher, p90x3, converse, ugg boots, ferragamo shoes, giuseppe zanotti, louboutin, moncler, mcm handbags, air max pas cher, ralph lauren, ugg outlet, soccer jerseys, valentino shoes, herve leger, babyliss pro, moncler, moncler, jimmy choo, vans, asics gel, air max, moncler outlet, chi flat iron, canada goose outlet, uggs on sale, hollister, canada goose, instyler ionic styler, moncler, canada goose, insanity, marc jacobs, tn pas cher, ray ban, canada goose outlet, air max, soccer shoes, canada goose, bottega veneta, ghd, ugg, celine handbags, ugg, gucci, canada goose, ugg boots, oakley

Unknown said...

ugg boots
air jordan 13
air jordan shoes
beats headphones
bottega veneta outlet
burberry outlet
canada goose outlet
chanel outlet
cheap wedding dresses
coach outlet
dansko outlet
evening dresses
hermes belt
hermes birkin
hermes outlet
juicy couture outlet
kate spade outlet
mbt shoes
michael kors outlet
mizuno running
moncler coats
mulberry outlet
soccer shoes
nike outlet store
the north face outlet
oakley sunglasses
ray ban sunglasses
stuart weitzman boots
surpa sneakers
north face outlet
the north face clearance
the north face jackets
the north face outlet store
north face jackets
the north face uk
tommy hilfiger outlet
tory burch outlet
true religion jeans
vans shoes
ysl outlet

Unknown said...

ddddd0925fred perry polo, http://www.fredperrypoloshirts.com/
coach outlet online,coach purses,coach handbags,coach bags,coach handbags sale,coach handbags outlet
hollister,hollister canada,abercrombie and fitch,abercrombie,abercrombie fitch,abercrombie kids,a&f
nike air foamposite one,foamposite,foamposites,foamposite release 2015,foamposite sneakers,foamposites for sale,foamposite gold
ugg boots, http://www.uggboot.com.co/
links of london uk, http://www.linksoflondons.co.uk/
louis vuitton outlet online, http://www.louisvuittonoutlet.in.net/
rolex watches,rolex,watches for men,watches for women,omega watches,replica watches,rolex watches for sale,rolex replica,rolex watch,cartier watches,rolex submariner,fake rolex,rolex replica watches,replica rolex
ralph lauren,ralph lauren uk,ralph lauren outlet,ralph lauren outlet online,polo ralph lauren outlet,ralph lauren polo
dansko clogs, http://www.dansko-shoes.us/
kobe bryants shoes 2015, http://www.kobeshoes.us/
michael kors outlet store, http://www.michaelkorsoutletonlinstore.us.com/
monster beats, http://www.beats-headphones.in.net/
san antonio spurs, http://www.sanantoniospursjersey.com/
kobe bryant store, http://www.kobebryantshoes.in.net/
nfl jerseys wholesale, http://www.nfljerseys-wholesale.us.com/
new york knicks, http://www.newyorkknicksjerseys.com/
chanel handbags, http://www.chanelhandbags-outlet.us.com/

Unknown said...

chanel handbags, http://www.chanelhandbags-outlet.co.uk/
the north face jackets, http://www.thenorthfacejacket.us.com/
canada goose outlet, http://www.canadagoose.us.org/
the north face outlet store, http://www.thenorthfaceoutletstores.org/
ugg boots, http://www.uggboot.com.co/
oakley sunglasses, http://www.oakleysunglasses-outlet.us.com/
hermes bags, http://www.hermesbags.co.uk/
oakley sunglasses, http://www.oakleysunglasseswholesale.in.net/
vans shoes, http://www.vans-shoes.cc/
coach outlet store, http://www.coach-outlet-store.us.com/
coach outlet canada, http://www.coachoutletcanada.com.co/
coach outlet, http://www.coachoutletstoreonline.in.net/
the north face uk, http://www.thenorthfaces.org.uk/
nike air max uk, http://www.nikeairmaxshoes.org.uk/
ray ban sunglasses, http://www.raybansunglass.us.com/
kobe shoes, http://www.kobeshoes.us/
nike free, http://www.nikefreerunning.org/
tory burch outlet, http://www.toryburchoutletonline.in.net/
ugg boots, http://www.uggbootscheap.eu.com/
designer handbags, http://www.designerhandbags.us.com/
cheap wedding dresses, http://www.cheap-weddingdresses.net/
michael kors outlet, http://www.michaelkorsoutletonlinestores.us.com/
air jordan 4, http://www.airjordan4.org/
fitflop, http://www.fitflop.in.net/
the north face outlet, http://www.northface-outlet.cc/
soccer jerseys, http://www.soccerjerseys.us.com/
air max 90, http://www.airmax90.us.com/
swarovski jewelry, http://www.swarovski.in.net/
ralph lauren uk, http://www.ralphlauren-outletonline.co.uk/
1006maoqiuyun

oakleyses said...

kate spade outlet online, nike air max, tory burch outlet online, ugg boots clearance, prada handbags, nike air max, ray ban sunglasses, michael kors handbags, chanel handbags, jordan shoes, nike outlet, longchamp outlet online, gucci handbags, christian louboutin, christian louboutin shoes, burberry outlet online, ugg outlet, oakley sunglasses, louis vuitton outlet, ray ban outlet, nike free, cheap oakley sunglasses, cheap ugg boots outlet, louis vuitton, longchamp outlet, michael kors outlet online, polo ralph lauren outlet, burberry outlet online, christian louboutin outlet, michael kors outlet online, oakley sunglasses, ray ban sunglasses, oakley vault, ugg australia, cheap ugg boots, red bottom shoes, replica watches, michael kors outlet, tiffany and co, tiffany jewelry, louis vuitton outlet online, replica watches, polo ralph lauren, prada outlet, louis vuitton handbags

oakleyses said...

pandora jewelry, swarovski uk, canada goose, moncler outlet, links of london uk, coach outlet, ugg boots, hollister canada, sac lancel, marc jacobs handbags, air max, pandora jewelry, converse, replica watches, vans, wedding dress, uggs outlet, canada goose pas cher, canada goose, uggs canada, louis vuitton uk, moncler, barbour, gucci, supra shoes, moncler outlet, canada goose, canada goose outlet, doke gabbana outlet, moncler, juicy couture outlet, sac louis vuitton, canada goose, canada goose outlet, montre femme, thomas sabo uk, ugg soldes, louis vuitton, louis vuitton pas cher, moncler, swarovski jewelry, michael kors outlet online, louis vuitton canada, barbour jackets, converse shoes, ugg, canada goose outlet, ugg, ray ban, karen millen, moncler

Unknown said...

Tory Burch Flats Marc Jacobs Handbags Jimmy Choo Shoes Jimmy Choos True Religion Outlet ED Hardy Outlet
Burberry Belt Tory Burch Boots Louis Vuitton Belt Ferragamo Belt Marc Jacobs Handbags Lululemon Outlet Christian Louboutin Shoes True Religion Outlet Tommy Hilfiger Outlet
Michael Kors Outlet Coach Outlet Red Bottoms Kevin Durant Shoes New Balance Outlet Adidas Outlet Coach Outlet Online Stephen Curry Jersey Vans Outlet Ralph Lauren Outlet
Ugg Boots Sale UGGS For Women Skechers Go Walk Adidas Yeezy Boost Adidas Yeezy Adidas NMD Coach Outlet North Face Outlet Ralph Lauren Outlet Puma Outlet Polo Outlet

Unknown said...

ravens jerseys
michael kors handbags
hermes belt
fitflops shoes
abercrombie and fitch
michael kors outlet store
michael kors handbags
nike air huarache
bears jerseys
michael kors handbags

Unknown said...

jaguars jersey
cheap jerseys
oakley sunglasses wholesale
ray ban sunglasses
ugg boots
replica watches
seahawks jersey
ralph lauren outlet
michael kors handbags
ralph lauren

ajudan pk said...

I really love this post I will visit again to read your post in a very short time and I hope you will make more posts like this.
cara menggugurkan hamil

Obat Herbal Mimisan Menahun said...

Any disease will surely recover, if we want businesses seek treatment :)

Obat Dermatitis Statis
Cara Ampuh Menyembuhkan Kaligata
Khasiat Lidah Buaya Untuk Keloid Di Kulit Tubuh
Cara Ampuh Menyembuhkan Penyakit Muntaber
Cara Mujarab Mengobati Dermatomiositis
Pengobatan Herbal Jantung Bengkak

Cara Menghilangkan Bopeng Bekas Jerawat said...

This article is interesting and useful. Thank you for sharing. And let me share an article about health that God willing will be very useful. Thank you :)

Obat Pelancar Haid paling Ampuh
Cara Membersihkan flek di Paru-paru
Cara Menyembuhkan Nyeri Punggung
Pengobatan Alami untuk Tipes
Cara Mengobati Kuku Cantengan
Solusi atasi sakit kepala Vertigo

Unknown said...

2018531 leilei3915
canada goose
ray ban sunglasses
pandora outlet
coach outlet store online
pandora charms
kate spade outlet online
michael kors handbags
christian louboutin shoes
louis vuitton outlet online
true religion

نقل اثاث said...

تنسيق حدائق بالرياض
شركة تنسيق حدائق بالرياض
مكافحة الحشرات بالرياض
نقل اثاث بالمدينة المنورة
كشف التسربات بالرياض
كشف تسربات بالرياض
شركة رش مبيد بالرياض

salma said...




شركة تنظيف في الكويت شركة تنظيف بالكويت
فني صحي فني صحي
سباك الكويت سباك صحي بالكويت معلم سباك صحي الكويت هندي

شركة غسيل سجاد الكويت افضل شركة مصبغة غسيل تنظيف سجاد الكويت
فني كهربائي منازل الكويت معلم فني كهربائي منازل في الكويت




Susan said...

Explore all kinds of users, hashtags and locations in ease with our Instagram Web Viewer Pictame2.

eadwinnubben said...

Harrah's Casino - Tunica Resorts
The casino features 218 충청북도 출장마사지 slot machines and nearly 1,000 slot machines. It was opened in November 1996. It is owned and operated by Harrah's.Owner: Tunica 영주 출장안마 ResortsOpening date: November 30, 1996; 12 제주도 출장마사지 years aLocation: Tunica 김포 출장안마 Resorts, Mississippi 38630‎History 양주 출장샵 · ‎Restaurants · ‎Gaming · ‎Hotel · ‎Restaurants