Readonly vs Immutable vs Frozen in C#: differences and (a lot of) benchmarks
The words ReadOnly, Immutable, Frozen seem similar but have distinct meanings in .NET. Hereโs a detailed comparison of Readonly, Immutable, and Frozen collections in C#, with benchmarks and typical us...
A new article!
Readonly vs Immutable vs Frozen in C#: meanings + benchmarks.
1๏ธโฃ Readonly = view, can still change
2๏ธโฃ Immutable = snapshot, new instance on update
3๏ธโฃ Frozen = build once, fastest lookups
Read & comment! ๐ฅ #dotnet #csharp #performance
www.code4it.dev/blog/readonl...
24.02.2026 08:19 โ
๐ 0
๐ 0
๐ฌ 0
๐ 0
Board of Peace
21.01.2026 07:59 โ
๐ 0
๐ 0
๐ฌ 0
๐ 0
`DiagnosticSuppressor` shines, when we want a dynamic behavior for enabling/disabling a `DiagnosticAnalyzer`. Here I am covering them and of course with tests ๐
๐๐ผ bit.ly/4p8d99a or scan the QR code!
#Roslyn #DiagnosticAnalyzer #DiagnosticSuppressor #SourceGenerator #csharp #dotnet
16.11.2025 12:00 โ
๐ 1
๐ 1
๐ฌ 0
๐ 0
Love this #copilot suggestion: all items are lowercase, but they should be lowercase!!
๐๐
31.10.2025 08:43 โ
๐ 2
๐ 0
๐ฌ 0
๐ 0
The Testing Pyramid emphasises Unit Tests.
The Testing Diamond emphasises Integration Tests.
But I really think we should not focus on technical aspects.
That's why I came up with the Testing Vial.
Let me know what you think of it!
12.10.2025 10:32 โ
๐ 0
๐ 0
๐ฌ 1
๐ 0
Good to know that .NET STS releases will now be supported for 24 months instead of 18 months.
The end of support will coincide with the release of the next STS, as a soft push to companies to upgrade to the newer versions.
23.09.2025 20:46 โ
๐ 0
๐ 0
๐ฌ 0
๐ 0
I left Twitter because of all those fake accounts, and now... they're here >sigh<
19.09.2025 06:48 โ
๐ 0
๐ 0
๐ฌ 0
๐ 0
a picture of a man 's face with the word alva on the bottom right
ALT: a picture of a man 's face with the word alva on the bottom right
I just realised that my city, Turin, is famous for two opposite things:
- Juventus Football Club
- the Shroud
11.09.2025 16:00 โ
๐ 0
๐ 0
๐ฌ 0
๐ 0
Ready to make your C# tests rock-solid? ๐ธ Discover how TimeProvider & FakeTimeProvider help you inject and test current time easily!
1๏ธโฃ Simplify date handling in tests
2๏ธโฃ Boost reliability with FakeTimeProvider
3๏ธโฃ No more custom wrappers!
Read & comment!๐
#dotnet #csharp #testing
03.09.2025 08:58 โ
๐ 2
๐ 1
๐ฌ 1
๐ 0
Ready to make your C# tests rock-solid? ๐ธ Discover how TimeProvider & FakeTimeProvider help you inject and test current time easily!
1๏ธโฃ Simplify date handling in tests
2๏ธโฃ Boost reliability with FakeTimeProvider
3๏ธโฃ No more custom wrappers!
Read & comment!๐
#dotnet #csharp #testing
03.09.2025 08:58 โ
๐ 2
๐ 1
๐ฌ 1
๐ 0
๐ Want to build your own static code analysis tool in .NET? Discover how Assembly, Type, MethodInfo & ParameterInfo work!
1๏ธโฃ Learn to inspect assemblies & types
2๏ธโฃ Master method & parameter analysis
3๏ธโฃ Build custom analyzersโno big tools needed!
Read & comment!
#dotnet #CSharp #CodeAnalysis #DevTips
06.08.2025 14:55 โ
๐ 0
๐ 0
๐ฌ 1
๐ 0
๐ Curious about error handling in C# async?
My latest article breaks down Task.WhenAll vs Task.WaitAll!
1๏ธโฃ Real code examples & outputs
2๏ธโฃ Key differences in exception handling
3๏ธโฃ Practical tips for modern C# devs
Read & comment your thoughts!
#dotnet #csharp #async #programming
link in comments
11.06.2025 08:40 โ
๐ 0
๐ 0
๐ฌ 1
๐ 0
How to run SonarQube analysis locally with Docker by @bellonedavide.bsky.social www.code4it.dev/blog/sonarqu... #aspnetcore
30.05.2025 08:44 โ
๐ 2
๐ 1
๐ฌ 0
๐ 0
๐ Wanna boost your code quality with SonarQube + Docker! Learn how to set it up locally and run your first analysis. ๐ ๏ธ
1๏ธโฃ Easy Docker setup for SonarQube
2๏ธโฃ Step-by-step guide for ASP.NET projects
3๏ธโฃ Navigate insightful reports ๐งโ๐ป
๐ Link in comments!
#CodeQuality #SonarQube #Docker #DotNET
28.05.2025 13:46 โ
๐ 1
๐ 0
๐ฌ 1
๐ 0
In a dystopic future, I can see Tesla taxis giving you a different quality of service depending on what you've posted on Twitter.
23.04.2025 10:10 โ
๐ 0
๐ 0
๐ฌ 0
๐ 0
Visual Studio Intellisense is weird:
Who is Joseph Maloney? Why does his name appear in my code??
21.03.2025 14:57 โ
๐ 0
๐ 0
๐ฌ 0
๐ 0
Never happened before: I celebrated the successful downgrade of the application I'm working on ๐๐
14.02.2025 11:21 โ
๐ 1
๐ 0
๐ฌ 0
๐ 0
๐ง D2 Diagrams: An Alternative to Mermaid๐ง
Tired of #Mermaid?
My latest article dives into the world of #D2 diagrams and shows you how to create your own!
Everything's defined as a text, but with more elements and ways to describe the #architecture
(link in the first comment)
04.02.2025 16:30 โ
๐ 0
๐ 0
๐ฌ 1
๐ 0
a cartoon of peter griffin talking to a butcher in a butcher shop
ALT: a cartoon of peter griffin talking to a butcher in a butcher shop
Just a kind reminder:
In Italy, we donโt have a clue of what Fettuccine Alfredo are.
Same for spaghetti with meatballs.
Never eat them, and you will not find them in any house or restaurant
๐ฎ๐น๐ฎ๐น๐๐
30.01.2025 21:17 โ
๐ 0
๐ 0
๐ฌ 0
๐ 0
Ok, I'm officially an Open Source contributor ๐
30.01.2025 15:58 โ
๐ 0
๐ 0
๐ฌ 0
๐ 0
๐ง Unlock the Power of Custom C# Attributes! ๐ง
Wanna make your #CSharp code more expressive and powerful?
My latest article dives into the world of custom C# attributes and shows you how to create your own!
1๏ธโฃ Enhance Code Readability
2๏ธโฃ Add Metadata
3๏ธโฃ Enhance searchability
๐
23.01.2025 13:39 โ
๐ 1
๐ 0
๐ฌ 1
๐ 0