Menu

#WriteLine

9 posts

Feed·
8 of 9 posts
I Changed object to Lock and Stopped Paying the Monitor Tax
📰
0Read More

I Changed object to Lock and Stopped Paying the Monitor Tax

DEV Community: dotnet·Sukhpinder Singh·25 days ago
#DJNW67Lj
#devtodotnet#devto#dev#lock#console

The .NET 9 System.Threading.Lock type lets the same lock keyword skip Monitor. I benchmarked it: about 13% faster uncontended for a one-word field change, plus the caveat that it's still not for async.

15s
C# Basics Day 2: Classes, Inheritance, Interfaces, Exceptions, Null Handling and File I/O, With Seven Practice Projects and a Library App
📰
0Read More

C# Basics Day 2: Classes, Inheritance, Interfaces, Exceptions, Null Handling and File I/O, With Seven Practice Projects and a Library App

DEV Community: dotnet·Manohari Jayachandran·about 1 month ago
#13nuTUFn
#devtodotnet#devto#dev#string#console

Why this post exists This is Day 2 of a six-day plan to learn C# deeply. Day 1 covered the...

15s