Join Nostr
2024-12-21 15:21:24 UTC
in reply to

Marcel T. : :gnome: :dotnet: on Nostr: I think it is a bit confusing because T could either be a reference type or a value ...

I think it is a bit confusing because T could either be a reference type or a value type. Value types having a completely different nullability mechanic which is not at all related to #nullable pragma. If you exclude structure types via : “ where T : class” the warning goes away, too and the class should behave as expected as it does not need to care for structs anymore.