Using the upcoming C# 8 nullable reference type feature, how can I tell if the type signature for a field/method/ property etc is a nullable or non-nullable reference type at runtime?
In runtime you should be able to check that by checking custom attributes. This is how current prototype captures this information. But I guess until it's released something can still change. Take a look at answer to this question in official C# language design repo provided by yaakov.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With