C# (C Sharp) Flashcards
Variables declaration in C#
Unlike C++ or C there is no need to declare a variable with a specific datatype.
Instead we use:
var ___
Resilience of C#
C# will not crash if we try to access elements outside of the array, eg if array has 3 elements and we try to access element 5.
It also won’t crash if we define 2 variables, yet we call out 3. The third one will be set to zero.
What happens at compile time
The code is turned into “Assembly” files. Intermediate Language file is created.
Note: CPU doesn’t understand those files.
The files need to be converted to binary code through an Execution Engine.
Execution Engine compiles the binary file on a JIT (Just-in-Time) basis.
Common Language Runtimes (CLR)
.NET 6 (Cross platform)
.NET Framework (legacy version, specific to Windows)
Base Class Libraries (BCL)
Libraries included in C#