- Parentheses or round brackets:
( )
- Term braces or Curly brackets:
{ }
- Square brackets:
[ ]
Classes
are grouped intonamespaces
and compiled intoassemblies
.- 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 calledNameOfTheProject
namespace
- The
using
directive brings the items in anamespace
into scope. - There is no an
1:1
equivalence between anassembly
and anamespace
.- A single
assembly
can contain classes defined in manynamespaces
- A single
namespace
can span between multipleassemblies
- A single
- IF a
using
directive appears grayed-out, it is not currently used by the application.
- It has the
.sln
suffix. - It can contain one or more projects (which has the
csproj
suffix).
- It is a command that performs an action. e.g:
- Calculate a value
- Store a result
- display a message
- Set of rules describing their format and construction. e.g.:
- An statement shall terminate with a semicolon
(;)
.
- An statement shall terminate with a semicolon
C#
is afree-format
language i.e., awhite-space
or anew-line
are not significant except as a separator.C#
is acase-sensitive
language i.e., adog
andDog
are different.
- It is the specification of what statement
do
.
- It is a storage location that holds a value.