Identifiers and Keywords
Collection Set of objects grouped together |
Contextual keywords Can be used as identifiers. With contextual keywords, ambiguity cannot arise within the context in which they are used. Link to Collections of reserved and contextual words |
Identifiers Are names that programmers choose for their classes, methods, variables, and so on. An identifier must be a whole word, essentially made up of Unicode characters starting with a letter or underscore. C# identifiers are case-sensitive. By convention, parameters, local variables, and private fields should be in camel case (e.g., myVariable), and all other identifiers should be in Pascal case (e.g., MyMethod). |
Keywords Are names that mean something special to the compiler. Most keywords are reserved, which means that you can’t use them as identifiers. If the identifier conflicts with reserved keyword, you can add @ prefix. class @class {...} |
Namespace Is a place where particular names have meaning. |
Strongly Typed Datatype of the object is known and available in the system eg public int SumNum(int a , int b) { return a+b; } Calling the function int result = SumNum(10+20); Will show error if you call int result = SumNum(10+"20"); |