GitHub topics: csharp-pills
CSharp-Pills-15mg/Life-inside-await
A tentative of reverse engineering the async-await mechanism
Language: C# - Size: 27.3 KB - Last synced at: almost 2 years ago - Pushed at: over 3 years ago - Stars: 0 - Forks: 0

CSharp-Pills-15mg/Disposable-Pattern
The support provided by .NET for reliably release the unmanaged resources, like manually allocated memory.
Language: C# - Size: 32.2 KB - Last synced at: almost 2 years ago - Pushed at: over 2 years ago - Stars: 0 - Forks: 1

CSharp-Pills-15mg/Virtual-in-Constructor
This pill demonstrates why it is not a good idea to call abstract or virtual methods from the constructor.
Language: C# - Size: 88.9 KB - Last synced at: almost 2 years ago - Pushed at: over 3 years ago - Stars: 1 - Forks: 1

CSharp-Pills-15mg/Random-Problems
What actually happens when we use a Random instance from multiple threads? Can we do something to make it thread-safe?
Language: C# - Size: 70.3 KB - Last synced at: almost 2 years ago - Pushed at: over 3 years ago - Stars: 0 - Forks: 1

CSharp-Pills-15mg/Lock-vs-Monitor
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?
Language: C# - Size: 59.6 KB - Last synced at: almost 2 years ago - Pushed at: over 3 years ago - Stars: 1 - Forks: 0

CSharp-Pills-15mg/Inversion-of-Control
Shows how to invert the dependency between two components.
Language: C# - Size: 13.7 KB - Last synced at: almost 2 years ago - Pushed at: over 2 years ago - Stars: 0 - Forks: 0

lastunicorn/While-vs-For
Is the `for` statement just a condensed way of writing a `while` statement?
Language: C# - Size: 23.4 KB - Last synced at: almost 2 years ago - Pushed at: over 3 years ago - Stars: 0 - Forks: 0

CSharp-Pills-15mg/Boxing-and-Unboxing
Are the boxing and unboxing processes really as time consuming as it is said?
Language: C# - Size: 35.2 KB - Last synced at: almost 2 years ago - Pushed at: over 3 years ago - Stars: 0 - Forks: 0

CSharp-Pills-15mg/Object-Initialization-in-CSharp
A C# Pill that highlights the order in which the fields, properties and constructors, both static and instance, are initialized in C#.
Language: C# - Size: 305 KB - Last synced at: almost 2 years ago - Pushed at: over 3 years ago - Stars: 1 - Forks: 1

CSharp-Pills-15mg/Parallel-Evolution
My target for this pill is to explain the `async-await` construct by presenting a short history of parallel programming.
Language: C# - Size: 668 KB - Last synced at: 10 months ago - Pushed at: over 2 years ago - Stars: 1 - Forks: 1

CSharp-Pills-15mg/Getters-and-Setters
A C# Pill that tries to answer the question: Is a property in C# just a collection of two methods?
Language: C# - Size: 66.4 KB - Last synced at: almost 2 years ago - Pushed at: over 3 years ago - Stars: 1 - Forks: 0

CSharp-Pills-15mg/Queryable-vs-Enumerable
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.
Language: C# - Size: 77.1 KB - Last synced at: almost 2 years ago - Pushed at: over 3 years ago - Stars: 0 - Forks: 0

CSharp-Pills-15mg/Using-vs-Try-Finally
A C# Pill to demonstrate that there is no functional difference between a 'try-finally' block, a 'using' block and a 'using' declaration.
Language: C# - Size: 99.6 KB - Last synced at: almost 2 years ago - Pushed at: over 3 years ago - Stars: 0 - Forks: 0
