Uncommon C# Keywords(nyxtom.vox.com)

submitted by rmorlokrmorlok(165) 4 years, 7 months ago

Everyone knows the basic C# keywords, but some are more obscure. This article dives into some useful C# keywords that you may have yet to encounter.

6 comments |category: |Views: 139

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by Chad.SmithChad.Smith(100) 4 years, 7 months ago 0

Probably not as simplistic an article as the title may lead to believe. Useful for all devs to skim over at least.

Reply

posted by JudahGabrielJudahGabriel(814) 4 years, 7 months ago 0

He missed some big, undocumented keywords like __makeref, __arglist and others.

Reply

posted by yesthatmcgurkyesthatmcgurk(4063) 4 years, 7 months ago 0

People who use undocumented keywords in their chode should have their fingers broken with hammers. Present company excepted, of course.

Also, the 'volatile' keyword behaves differently on different architectures and should usually be avoided...

Reply

posted by senfosenfo(881) 4 years, 7 months ago 0

Should have also added the "fixed" keyword.

Reply

posted by yesthatmcgurkyesthatmcgurk(4063) 4 years, 7 months ago 0

Ugh. The guy stole the whole fucking article from other sources. Here's his stackalloc paragraph:

http://www.codeproject.com/dotnet/pointers.asp

Unkicked, and so help me I'd abuse my mod powers and delete this if it wasn't on the front page.

Reply

posted by JudahGabrielJudahGabriel(814) 4 years, 7 months ago 0

I agree Mcgurk, really no one should be using undocumented keywords. I also agree about the volatile thing; we have a 250k line C# codebase and not a single volatile (or undocumented) keyword usage. :-)

We use yield all the time, however, despite the article mentioning how rarely used that is.

Reply

information Login or create an account to comment on this story