Appendix C. C# Keywords

Microsoft .NET Framework, ASP.NET, Visual C# (CSharp, C Sharp, C-Sharp) Developer Training, Visual Studio


Jump to: navigation, search

A C# keyword is a predefined reserved identifier that has a special meaning to the C# compiler. Keywords cannot be used as identifiers in your program unless they include the "at" sign (@) as a prefix. For example, @new would be a legal identifier; but, new is not, because it is a keyword.


C# keywords / C# reserved words
abstract as base bool
break by3 byte case
catch char checked class
const continue decimal default
delegate do double descending3
explicit event extern else
enum false finally fixed
float for foreach from3
goto group3 if implicit
in int interface internal
into3 is lock long
new null namespace object
operator out override orderby3
params private protected public
readonly ref return switch
struct sbyte sealed short
sizeof stackalloc static string
select3 this throw true
try typeof uint ulong
unchecked unsafe ushort using
var3 virtual volatile void
while where3 yield2  
2 - C# 2.0 Keyword
3 - C# 3.0 Keyword


See also


Personal tools