What are contextual keywords in C#?



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

The following is the table showing contextual keywords −

Contextual Keywords
add alias ascending descending dynamic from get
global group into join let orderby partial (type)
partial(method) remove select set


Updated on: 2020-06-20T11:50:16+05:30

763 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements