Web Design that taps into the haromny and vision of your dreams.

List of C# Keywords and Reserved Words

A list of built-in keywords in C#

Written By on in C#

138 words, estimated reading time 1 minutes.

As with every programming language, C# has a number of built-in keywords. If you have used other programming languages then some of these may be familiar to you.

This article relates to an old version of the .Net Framework. While the contents are still relevant, future versions of the framework may change, or improve upon, the contents of this article.

Keywords are reserved words so you cannot call a variable, method or property 'abstract', for example.

These tables show the keywords used by the C# programming language and the version of the .Net Framework they were introduced into. You cannot use a .Net 3 keyword in .Net 2, but you can use a .Net 2 keyword in .Net 3.

C# Keywords (.Net version 1.1)
abstractasbaseboolbreakbyte
casecatchcharcheckedclassconst
continuedecimaldefaultdelegatedodouble
elseenumeventexplicitexternfinally
fixedfloatforforeachgotoif
implicitinintinterfaceinternalis
locklongnamespacenewnullobject
operatoroutoverrideparamsprivate
publicreadonlyrefreturnsbytesealed
shortsizeofstackallocstaticstringstruct
switchthisthrowtrytypeofunit
ulonguncheckedunsafeushortusingvirtual
voidvolatilewhileFALSETRUE 

 

C# Keywords Introduced in .Net Framework 2.0
yield     

 

C# Keywords Introduced in .Net Framework 3.0
bydescendingfromgroupintoorderby
selectvarwhere   

Last updated on: Friday 8th September 2017

 

Comments

There are no comments for this post. Be the first!

 

Leave a Reply

Your email address will not be published.





If you find something abusive or that does not comply with our terms or guidelines please flag it as inappropriate.

Copyright © 2001-2018 Tim Trott, all rights reserved. Web Design by Azulia Designs

This web page is licensed for your personal, private, non-commercial use only.

Disclaimer, Privacy & LegalSitemapContact Me