What are some common commands for C#?
There has a lot of C# commands especially for running or handling any kind of critical business logic through proper object-oriented programming concept in C sharp environment. Some of the basic C# commands are mentioned below:
1.Using
This keyword has been used as the first statement for any C# programming. It is basically indicating one of the basic keywords for mentioning namespace in any C sharp programming. There has a big possibility of having multiple using the keyword in one C sharp big programming code. Using the system
2.Class
This is one of the big keywords has been using for declaring one specific class in case of C sharp programming.
Class User{
...
}
3.Comments
Comments are very much frequently used for any kind of programming language. But the definition of comments can be different for each type of language. Comments are normally used for mentioning compiler that commented code should not need to consider for compiling. In the case of C sharp, two kinds of commands are using for comments the code,
`- Using ‘/*….*/’ keyword for avoiding multiple lines of code from compiling.
- Using ‘//’ for avoiding a single line of code from compiling.
4.Member or Class Variable
Member or class variable can be considered as an Instance variable. This kind of variable is normally defined in the class definition. Those variables are available everywhere in the class, every individual method can easily access those variables as per their requirement. And any value changes on that variable will be affected for all the methods at a time.
`5.Instantiating of an Object
Instantiation of a class is always be required in case of object-oriented programming concept for using that class method or variables. Class instantiation can be done for those classes which actually holding the main method. Normally after the instantiation of each class, the main method will call directly.
`6.Identifier
An identifier is very much required in case of C# programmer for declaring anything like Class, Variables etc. This identifier is basically very much helpful for identifying the specific class, functions or variables or any kind of C# programming item which are user-defined. The very basic rules which are needs to be followed by the developer in case of C# programming are:
`- A name should need to start with a letter or sequence of the letter. It can hold digits like 0-9 or underscore (_). But starting of the identifier name should be a letter, digit will not accept in case of C# programming.
- It should not ever contain any kind of symbolic language available in the keyboard like +, -, !, @, #, $, %, ^, &, *, (, ), / etc. Only underscore (_) is one of the accepted identifiers for mention name in C# programming.
- Identifier never is a common keyword of C#.