Monday, September 17, 2012

Contextual Keywords

There are some keywords in C# that are considered contextual keyword, in that these are not reserved keywords but provides specific meaning in the code.Technically you can use these  keywords as an identifiers but you should avoid to doing this, since it could lead to confusion.


Some contextual key words are:-
add, async, await, partial, var, global,get, set, value, where, remove, yield, select,

For Example:-
string var = "Hello Manish";
var str = "Hello";

No comments:

Post a Comment

^ Scroll to Top