How do I reflect nullability of a type's property in C# 9 when Nullable Reference types are enabled?

后端 未结 0 1988
失恋的感觉
失恋的感觉 2020-12-13 22:33

I am iterating the reflected properties of a type. I want to know which have been defined as nullable, and which are not. I believe the usual approach is:



        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题