C#8.0引入了可为空的引用类型。这是一个具有可空属性的简单类:
public class Foo { public String? Bar { get; set; } }
有没有一种方法可以通过反射检查类属性是否使用可为空的引用类型?
c# reflection nullable nullable-reference-types
c# ×1
nullable ×1
nullable-reference-types ×1
reflection ×1