#19 – Contextual Keywords

There are some keywords in C# that are considered contextual, in that their usage is determined by their context.  Technically, you are free to use these keywords as identifiers, without needing the ‘@’ symbol.  But you should avoid doing this, since it could lead to confusion.

The contextual keywords are:  add, dynamic, get, global, partial, remove, set, value, var, where, yield

string var = "Don't do this, either";
Advertisement

About Sean
Software developer in the Twin Cities area, passionate about software development and sailing.

One Response to #19 – Contextual Keywords

  1. Tom says:

    two more identifiers: async & await

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: