Uncommon C#.NET Keywords

Comments

I wouldn't call these obscure as much as "special". There are really special cases for stackalloc and volatile but it doesn't make them weird. Stackalloc is for when dealing with unsafe code and need the memory management and for volatile most people choose to use lock instead.

Yield is a very popular 2.0 feature the reason most people don't use it is because they don't use IEnumerable
Wes Dyers talked on his blog about how Linq object queries work in a particular post here. He uses the yeild when demonstrating the Lazy loading part of C# queries as opposed to the forced evaluation (i.e. projections on queries).
don't forget the default keyword.
[this is good]
I think most obscure C# keywords are
__makeref
__reftype
__refvalue
__arglist

;)
[this is good]
What about 'fixed' and 'checked' keywords? ;)
[this is good]
useful site for c#.net
[this is good]
Last week i started to learn c#.

Post a comment

Already a Vox member? Sign in

Thomas Holloway

About Me

Thomas Holloway
United States
worry less, do more
Messaging:
Send

My Groups

Neighborhood

Explore friends, family, friends & family, or entire neighborhood.

Archives