A C# Pill that tries to peek under the hood of the `lock` instruction. Is the `lock` statement just a syntactic sugar for the usage of `Monitor` class?
-
Updated
Nov 11, 2021 - C#
A C# Pill that tries to peek under the hood of the `lock` instruction. Is the `lock` statement just a syntactic sugar for the usage of `Monitor` class?
My target for this pill is to explain the `async-await` construct by presenting a short history of parallel programming.
A C# Pill that tries to answer the question: Is a property in C# just a collection of two methods?
A C# Pill that highlights the order in which the fields, properties and constructors, both static and instance, are initialized in C#.
This pill demonstrates why it is not a good idea to call abstract or virtual methods from the constructor.
Shows how to invert the dependency between two components.
Are the boxing and unboxing processes really as time consuming as it is said?
A tentative of reverse engineering the async-await mechanism
The support provided by .NET for reliably release the unmanaged resources, like manually allocated memory.
Is the `for` statement just a condensed way of writing a `while` statement?
A C# Pill that highlights that the Linq query applied after a cast to `IEnumerable` is not translated into SQL. Instead, it is run in memory.
What actually happens when we use a Random instance from multiple threads? Can we do something to make it thread-safe?
A C# Pill to demonstrate that there is no functional difference between a 'try-finally' block, a 'using' block and a 'using' declaration.
What is the performance differences between string concatenation and StringBuilder and string constructor?
Add a description, image, and links to the csharp-pills topic page so that developers can more easily learn about it.
To associate your repository with the csharp-pills topic, visit your repo's landing page and select "manage topics."