为了检查Type ( propertyType )是否可以为空,我使用:
Type
propertyType
bool isNullable = "Nullable`1".Equals(propertyType.Name)
有什么方法可以避免使用魔法字符串吗?
https://stackoverflow.com/questions/8939939
相似问题