Learn c#
  • Overview
  • Chapter 0 c# vs .net
  • Chapter 1 Definitions
    • Data Types (Primitive Types)
    • Variables
    • Overflow
    • Identifiers
    • Comments
  • Chapter 2 Type Conversions
  • Chapter 3 C# Operators
  • Chapter 4 Non-Primitive Types
    • Reference Types and value types
    • Class, Fields, property
    • Structs and Arrays
    • Strings
    • Enums
  • Chapter 5 Conditional statements and Loops
    • Conditional Statements
    • Random Class
  • External Links
    • cSharp-Station
    • cSharp corner
    • CodeProject
    • cSharp Guide by Microsoft
  • Tips
Powered by GitBook
On this page

Chapter 1 Definitions

Basic definitions are covered in this chapter.

Naming conventions:

Camel Case: firstName - first letter of first word is lower case, and first letter of all other words should be Upper case. Pascal Case: FirstName - first letter of every word should be upper case. Hungarian Notation: append type to the identifier like, strFirstName str is type here.

For local variables use Camel case like int number; For constants use Pascal Case like const int MyValue = 5;

Note: Since I use all the commands before I udpate in this site, some of the datatypes are given with first letter as uppercase. But always use small letters for datatypes.

PreviousChapter 0 c# vs .netNextData Types (Primitive Types)

Last updated 6 years ago