Skip to content
@CSharp-Pills-15mg

C# Pills 15mg

Pinned

  1. Lock-vs-Monitor Lock-vs-Monitor Public

    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?

    C# 1

  2. Boxing-and-Unboxing Boxing-and-Unboxing Public

    Are the boxing and unboxing processes really as time consuming as it is said?

    C#

  3. Virtual-in-Constructor Virtual-in-Constructor Public

    This pill demonstrates why it is not a good idea to call abstract or virtual methods from the constructor.

    C# 1 1

Repositories

Showing 10 of 14 repositories
  • String-Building Public

    What is the performance differences between string concatenation and StringBuilder and string constructor?

    C# 0 GPL-3.0 0 0 0 Updated Oct 12, 2023
  • Inversion-of-Control Public

    Shows how to invert the dependency between two components.

    C# 0 0 0 0 Updated Dec 14, 2022
  • Disposable-Pattern Public

    The support provided by .NET for reliably release the unmanaged resources, like manually allocated memory.

    C# 0 1 0 0 Updated Dec 6, 2022
  • Parallel-Evolution Public

    My target for this pill is to explain the `async-await` construct by presenting a short history of parallel programming.

    C# 1 1 0 0 Updated Dec 6, 2022
  • Random-Problems Public

    What actually happens when we use a Random instance from multiple threads? Can we do something to make it thread-safe?

    C# 0 1 0 0 Updated Dec 16, 2021
  • Getters-and-Setters Public

    A C# Pill that tries to answer the question: Is a property in C# just a collection of two methods?

    C# 1 GPL-3.0 0 0 0 Updated Dec 12, 2021
  • Object-Initialization-in-CSharp Public

    A C# Pill that highlights the order in which the fields, properties and constructors, both static and instance, are initialized in C#.

    C# 1 GPL-3.0 1 0 0 Updated Nov 12, 2021
  • Queryable-vs-Enumerable Public

    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.

    C# 0 GPL-3.0 0 0 0 Updated Nov 12, 2021
  • Using-vs-Try-Finally Public

    A C# Pill to demonstrate that there is no functional difference between a 'try-finally' block, a 'using' block and a 'using' declaration.

    C# 0 GPL-3.0 0 0 0 Updated Nov 11, 2021
  • Virtual-in-Constructor Public

    This pill demonstrates why it is not a good idea to call abstract or virtual methods from the constructor.

    C# 1 GPL-3.0 1 0 0 Updated Nov 11, 2021

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…