Keywords such as async
and await
have been introduced in C# 5.0 and are called contextual keywords. Contextual keywords have special meaning only in a limited program context and can be used as identifiers outside that context. However, it is recommended that you do not use such keywords as identifiers to avoid confusion.
var async = true;
var isAsync = true;