What keyword,How many keywords in C#

What keyword,How  many keywords in C#:



C# Keywords:

Keywords are reserved words predefined to the C# compiler. These keywords cannot be used as identifiers; however, if you want to use these keywords as identifiers, you may prefix the keyword with the (@, #, $, -, _ etc) character.

In C#, some identifiers have special meaning in context of code, such as get and set, these are called contextual keywords.

The following table lists the reserved keywords and contextual keywords in C#:

Reserved Keywords:

Abstract, As, Base, bool, break, byte, case, catch, Char, checked, class, const, continue, decimal,Default, delegate, do, double, else, enum, event, explicit, extern, false, finally, fixed, float, for,For each, Goto ,if, implicit, in ,in (generic modifier), int, interface, internal ,is lock, long ,namespace, new,null,object ,operator ,out,override, params, private, protected, public, read only ,ref ,return ,sbyte,sealed ,short ,sizeof , stackalloc, static ,string , struct, switch ,This ,throw ,true, try, typeof, uint, ulong, unchecked, unsafe, ushort , using ,virtual ,void, volatile ,While,


Contextual Keywords:


Add, Alias, ascending, descending, dynamic, from, get.

Comments

Popular posts from this blog