Manuel Zelenka
banner
dev-in-disguise.bsky.social
Manuel Zelenka
@dev-in-disguise.bsky.social
Lead Developer @AdmiralTechnologies (C#/.NET) | Family man | Liverpool FC supporter | Rock/Metal/Prog enthusiast
Started a discussion for a new #csharp language feature: primary enum definition.

Basically being able to write similar to classes, structs and records:
public enum Fruit(Banana, Apple);

Yay or nay?
github.com/dotnet/cshar...
Primary enum definition · dotnet csharplang · Discussion #9821
Given that we have the possibility to use a primary constructor now for records, classes and structs it would be great and improve consistency in the language to have a similar feature for enums. E...
github.com
November 16, 2025 at 7:58 PM
While looking at the spec of enums for a language proposal I want to make I encountered a very strange thing that I never encountered in 13 years of professional development with C#.

At least I haven't seen the need before to assign one enum value to another.

So let's assume the following enum:
November 16, 2025 at 7:58 AM
Reposted by Manuel Zelenka
Pro .NET Memory Management

The co-authors of the 2nd edition - Konrad Kokosa, @chrisnas.bsky.social, @kevingosse.net - talk about the content and the book per se.
Join with your curiosity and your questions to the trio.

2025-03-25
18:00 UTC

#dotnet #CSharp #Memory

www.youtube.com/watch?v=DboS...
2code ^ !2code [S2025E04] Pro .NET Memory Management
YouTube video by FlashOWare
www.youtube.com
March 20, 2025 at 7:10 AM
New day, so on to the next step in finishing my .NET Aspire setup!

So that I can show the distributed capabilities of FusionCache I also need a Redis instance up and running.

From a quick glance at the docs this seems again fairly easy:
learn.microsoft.com/en-us/dotnet...
.NET Aspire Redis integration - .NET Aspire
Learn how to use the .NET Aspire Redis integration, which includes both hosting and client integrations.
learn.microsoft.com
March 18, 2025 at 5:55 AM
It has been a long time since I tried to continue my journey to my fusion cache presentation. Maybe I'll get to finish the Aspire setup until my son awakes from his lunch break 😴

What's still left is running 2 replicas of my API and adding Redis to the mix. So lets get going!
March 16, 2025 at 12:43 PM
Azure Data Studio is dead so I'm trying to use VS Code now as my main since I use that anyway already for coding SPs and Table definitions.

Does anyone know of a extension that lets me color highlight the active connection per tab? Or is that supported by the SQL Server extension even?
February 10, 2025 at 2:21 PM
Any seasoned Roslyn Source Generator writers out there that I can ask the question: are you writing them as plain strings, via StringBuilder, StringBuilder with IndentedTextWriter or do you use the SyntaxFactory?
February 9, 2025 at 1:19 PM
Being a software dev in 2025 is wild.

For a .NET lib I'm working on I have a lot of boiler plate code to write. So I figured a Roslyn Source Generator would be a nice way around that. But the caveat: apart from reading a little about them I've never had to write one.

So ChatGPT, can you help me?
February 3, 2025 at 10:35 AM
I'm starting an adventure.

Actually I want to make a FusionCache presentation at my company. And for that I want to build a small CRUD API with a DataBase behind it.

I guess there'll not be a better chance for an intro to .NET Aspire than this so let's do it!
January 24, 2025 at 8:54 AM
Late to the party but so awesome that System.Text.Json supports polymorphic de-/serialization since .NET 7 via the JsonDerivedType attribute.

Creating code like this that just works is so simple, yet elegant.
January 17, 2025 at 1:02 PM
Currently toying around with an idea for a small .NET library that makes working with the TryGet pattern easier/more comfy.

So far I'm pretty happy with the usage and early benchmarks seem to suggest it even has a potential perf perk 🚀

#dotnet #csharp
January 6, 2025 at 2:01 PM
Hey @moke.me!
Is it somewhere documented how one could get on your All things .NET feed? It seems like that's currently the most used/liked .NET feed so it would be great if the rules are transparent.
January 6, 2025 at 1:13 PM