Get the App
SLTechnology News&Howtos  ›  Development  › 

What is the use of the identifier of C #

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

In this article, the editor introduces in detail "what is the use of the identifier of C#", the content is detailed, the steps are clear, and the details are handled properly. I hope that this article "what is the use of the identifier of C#" can help you solve your doubts. Let's follow the editor's train of thought to learn new knowledge.

Identifier

Identifiers are used to identify classes, variables, functions, or any other user-defined item. In C#, class naming must follow the following basic rules:

Identifiers must begin with a letter, underscore, or @, followed by a series of letters, numbers (0-9), underscore (_), @.

The first character in an identifier cannot be a number.

Identifiers must not contain any embedded spaces or symbols, such as?-+! #% ^ & * [] {}. ; "'/\.

The identifier cannot be a C# keyword. Unless they have an @ prefix. For example, @ if is a valid identifier, but if is not, because if is the keyword.

Identifiers must be case sensitive. Uppercase and lowercase letters are considered different letters.

Cannot be the same as the class library name of C#.

What is C #? C # is a simple, general-purpose, object-oriented programming language developed by Microsoft Microsoft. It inherits the powerful functions of C # and C++, and removes some of their complex features. C # combines the simple visual operation of VB and the high running efficiency of C++, and becomes the preferred language for .NET development because of its strong operation ability, elegant syntax style, innovative language features and convenient component-oriented programming. However, it is not suitable for writing code that is time-critical or very high-performance, because C# lacks the key functionality required by extremely high-performance applications.

After reading this, the article "what is the use of identifiers of C#" has been introduced. If you want to master the knowledge points of this article, you still need to practice and use it yourself to understand it. If you want to know more about related articles, welcome to follow the industry information channel.

Tags: Logos identifiers letters keys articles languages powerful underscores keywords content functions performance numbers features clocking development programming convenience complexity Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi OPPO Reno Shulou Tech Info Apple Shulou Technology