Pherenetic
NRT: How to correctly annotate my generic-class when inheriting from another generic class?
I just skimmed through the
List<T>
implementation. Maybe I have to use <T, K>
and use something like this
https://github.com/dotnet/runtime/blob/5535e31a712343a63f5d7d796cd874e563e5ac14/src/libraries/System.Private.CoreLib/src/System/Collections/Generic/List.cs#L22560 replies
NRT: How to correctly annotate my generic-class when inheriting from another generic class?
My problem/question is: How do I implement
MyDictionary<T, K> : Dictionary<T, K>
where I can leverage NRT and it's up to an actual consumer of that type if he wants to allow null or not.60 replies