Home  >  Article  >  Backend Development  >  Keywords in C#

Keywords in C#

王林
王林forward
2023-09-09 22:41:09829browse

C# 中的关键字

Keywords are reserved words predefined for the C# compiler. These keywords cannot be used as identifiers. However, if you want to use these keywords as identifiers, you can precede the keywords with the @ character.

The following are two types of keywords in C#.

Reserved Keywords

td >Selectfloating##nullObjectOperatorOutout (universal modifier) ​​ Override Parameters Private Protected Public Read onlyrefReturnsbyteSealedshortsizeofstackallocstaticstringstructureswitchthrowsTruetrytypeofuintulongUncheckedUnsafeUshortUseVirtualInvalidVolatileAnd##Context keyword
Abstract as Basic BoolInterrupt Bytes Case
Capture CharactersClass const Continue Decimal
Default Delegation Execution Double Other Enumeration Event td>
Display formula external false finally fixfor
foreach Go to if Implicit in in (universal modifier) int
Interface Internal is Lock long Namespace new
This

addGlobalPart (Method)
Alias Ascending Descending Dynamic From Get
Group Enter Join Let orderby Part (Type)
Delete Select set up

The above is the detailed content of Keywords in C#. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete