Skip to content

Latest commit

 

History

History
51 lines (43 loc) · 1.95 KB

ConceptsAndDefinitions.md

File metadata and controls

51 lines (43 loc) · 1.95 KB

1. Brackets

  • Parentheses or round brackets: ( )
  • Term braces or Curly brackets: { }
  • Square brackets: [ ]

2. Namespaces

  • Classes are grouped into namespaces and compiled into assemblies.
  • An assemblie is a file that can be a .dll or an .exe
  • When a new project is created a default namespace is created and used, it is called NameOfTheProject namespace
  • The using directive brings the items in a namespace into scope.
  • There is no an 1:1 equivalence between an assembly and a namespace.
    • A single assembly can contain classes defined in many namespaces
    • A single namespace can span between multiple assemblies
  • IF a using directive appears grayed-out, it is not currently used by the application.

3. Solution

  • It has the .sln suffix.
  • It can contain one or more projects (which has the csproj suffix).

4. Statement

  • It is a command that performs an action. e.g:
    • Calculate a value
    • Store a result
    • display a message

4.1. Syntax

  • Set of rules describing their format and construction. e.g.:
    • An statement shall terminate with a semicolon (;).
  • C# is a free-format language i.e., a white-space or a new-line are not significant except as a separator.
  • C# is a case-sensitive language i.e., a dog and Dog are different.

4.2. Semantics

  • It is the specification of what statement do.

5. Variable

  • It is a storage location that holds a value.