What are the keywords in C #
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!