Get the App
SLTechnology News&Howtos  ›  Development  › 

What are the keywords in C #

Shulou Source: shulou.com Published: 2022-06-01 02:09:39 10月04日 Update

This article mainly explains "what are the keywords in C#". The content of the explanation in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "what are the keywords in C#"?

C # keyword

Keywords are reserved words predefined by the C # compiler. These keywords cannot be used as identifiers, but if you want to use them as identifiers, you can prefix them with the @ character.

In C #, some keywords have a special meaning in the context of the code, such as get and set, which are called context keywords (contextual keywords).

The following table lists the reserved keywords (Reserved Keywords) and context keywords (Contextual Keywords) in C#:

Reserved keyword abstractasbaseboolbreakbytecasecatchcharcheckedclassconstcontinuedecimaldefaultdelegatedodoubleelseenumeventexplicitexternfalsefinallyfixedfloatforforeachgotoifimplicitinin (generic

Modifier) intinterfaceinternalislocklongnamespacenewnullobjectoperatoroutout

(generic

Modifier) overrideparamsprivateprotectedpublicreadonlyrefreturnsbytesealedshortsizeofstackallocstaticstringstructswitchthisthrowtruetrytypeofuintulonguncheckedunsafeushortusingvirtualvoidvolatilewhile

Context keyword addaliasascendingdescendingdynamicfromgetglobalgroupintojoinletorderbypartial

(type) partial

(method) removeselectset

Thank you for your reading, the above is the content of "what are the keywords in C#". After the study of this article, I believe you have a deeper understanding of the keywords in C#, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Keywords keywords context content identifiers identifiers special code prefixes characters that is ideas situations meaning articles more knowledge Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Linux NVidia Shulou Information Docker