DailyDrop

Creating scopes with braces

Creating scopes with braces without any statements


Read more...


ConcurrentDictionary AddOrUpdate method

ConcurrentDictionary (unlike Dictionary) has a useful AddOrUpdate method


Read more...


Exploring the new list pattern

Exploring the new list and slice pattern coming with C# 11


Read more...


Setting readonly variable using init

Readonly variable can be set using an init only setter


Read more...


Managing multi-thread access with ReaderWriterLockSlim

Using ReaderWriterLockSlim to allow concurrent reading but exclusive writing


Read more...


Static anonymous functions


Read more...


Interlocked vs using the lock keyword

How InterLocked can simplify the lock process in certain cases


Read more...


Linked Lists in C#

Having a look at C#'s built in link list implementation


Read more...


Cancel a task with OperationCanceledException

Why the OperationCanceledException should be used over a soft cancellation


Read more...


Anonymous types and with keyword

Using the with keyword to support non-destructive mutations on anonymous types


Read more...