Please enable JavaScript.
Coggle requires JavaScript to display documents.
01 Recap of C# Fundamentals Material (Classes and objects (Defining own…
01 Recap of
C# Fundamentals
Material
Miscellaneous concepts
Defining namespaces
Using namespaces
Data type aliases
(e.g. int --> System.Int32)
Compound operators (e.g. +=)
Prefix / post-fix operators (e.g. x++)
Narrowing conversions via casting
(e.g. double --> int)
$ notation string templates
Arithmetic operator precedence
Methods and
parameter passing
Pass by value (default mechanism)
Passing reference type by value
Void methods (no return value)
Methods returning value (type defined in method signature)
Method overloading
Passing by reference (ref keyword)
Out parameters (out keyword)
Conditionals
and operators
if / else / else if / else
switch statement
Nested conditionals verses "straight line"
Relational operators (<, <=, >, >=, ==, !=)
Logical operators (&&, ||, !)
Operator precedence (AND before OR)
Conditional operator ( x ? y : z )
Loops
While loops
Do while loops
For loops
Foreach loop
Arrays
Declaring and initialising
[ ] notation, e.g. string[ ]
Creating with initial size: new string[5]
Create and initialise together via { ... }
Accessing elements via a[n]
Classes
and objects
Defining own classes
Creating instance via new
Constructors
(Private) fields
(Public) properties
Public / private methods
Static fields / properties / methods
Auto-implemented properties
Calculated properties
Accessibility modifiers (public, private, internal)
Unit testing
and TDD
Arrange - act - assert pattern
Setting up a unit test project
Naming conventions
Data-driven tests
Useful assert statements
TDD red - green - refactor pattern