To C # Naming Conventions
Follow pascalcasing principles |
Class Name: directly composed of nouns or noun phrases. Example: Class |
Attribute: directly composed of nouns or noun phrases. Example: Name |
Interface: It is composed of uppercase letters I and verbs or verb phrases. For example, igetallbookinfo. |
Follow Camelcasing rules |
Private variable: it cannot contain data types. It is often prefixed with an underscore. For example, _ studentname. |
Local variables and parameters: they cannot contain data types, such as studentnum. |
Special: 1. The name of the event and the delegate: usually use a verb or verb phrase. Use the current time and past time to mark the sequence of events.
Use the suffix of eventhandler for delegation. Follow the pascalcasing principle, for example, getallbookinfoeventhandler. The event is suffixed with eventargs,
Follow the pascalcasing principle, for example, getnameeventargs.
2. Names of file names are similar.