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?
This pill demonstrates why it is not a good idea to call abstract or virtual methods from the constructor.
A C# Pill that highlights the order in which the fields, properties and constructors, both static and instance, are initialized in C#.
Shows how to invert the dependency between two components.
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.
A tentative of reverse engineering the async-await mechanism
Are the boxing and unboxing processes really as time consuming as it is said?
What actually happens when we use a Random instance from multiple threads? Can we do something to make it thread-safe?
What is the performance differences between string concatenation and StringBuilder and string constructor?
Is the `for` statement just a condensed way of writing a `while` statement?
A C# Pill to demonstrate that there is no functional difference between a 'try-finally' block, a 'using' block and a 'using' declaration.
The support provided by .NET for reliably release the unmanaged resources, like manually allocated memory.
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."