Keywords in C#

王林
Release: 2023-09-09 22:41:09
forward
874 people have browsed it

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!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template