Uncategorized
-
Constants C#, Brief Explanation
A constant is evaluated statically at compile time, and the compiler literally substitutes its value whenever used. A constant can serve similar role to a static readonly field, but it is more restrictive. A constant also differ from a static readonly field in that the evaluation of the constant occurs at compile time. Constant: static…
-
C# Boxing and Unboxing
Boxing: Act of converting a value type instance to a reference type instance. Example: int x = 9; object obj = x; Unboxing: Reverses the operation by casting the object back to the original value type: Example: int y = (int)obj; Unboxing requires an explicit cast. The runtime checks that the stated value type matches…
-
C# Compilation
The C# compiler compiles source code (a set of files with .cs extension) into an assembly. .NET 8 assemblies never have a .exe extension. The .exe after building a .NET 8 application is a platform spesific native loader responsible for starting application .dll assembly
-
C# Common Language Runtime
CLR provide essential runtime services such as automatic memory management and exception handling. Runtime can be shared by other managed programming languages, such as F#, Visual Basic, and Managed C++.
-
Hello world!
Welcome to WordPress. This is your first post. Edit or delete it, then start writing!