Our great sponsors
-
ReferenceAssemblyAnnotator
IL weaver to add nullability annotations to .NET reference assemblies (by jnm2)
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
It’s basically an unsolved problem as of C# 10. Possibly resolved in 11. https://github.com/dotnet/csharplang/issues/3630
In the case of NRT, most of the feature lives in the compiler. Annotations, of course, live in the BCL, which is why I recommend https://github.com/jnm2/ReferenceAssemblyAnnotator — that way, you can use something like Dictionary.TryGetValue() in your .NET Standard 2.0 code, and the compiler will know that the out value is null if the method returns false.