Identifiers

These keywords are used in any part of the C# program and are reserved. Identifiers are special keywords and are treated differently by the compiler.

These are the identifiers that are reserved by C#:

  • abstract: This informs you that things that come with the abstract modifier are yet to complete or have a missing definition. We will discuss this in detail on day four.
  • as: This can be used in a cast operation. In other words, we can say that this checks the compatibility between two types.
The as keyword falls in the operator category of keywords; refer to https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/operator-keywords.

The following is the small code snippet that demonstrates the as identifier:

Get Learn C# in 7 days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.