为检查Type(propertyType)是可空的,我使用:
Type
propertyType
bool isNullable = "Nullable`1".Equals(propertyType.Name)
有什么方法可以避免使用magic strings吗?
相似问题