我正在将库项目迁移到 .net 标准,当我尝试使用System.Reflection
调用APIType:GetProperties()
:
类型不包含“GetProperties”的定义
这是我的project.json
:
{
"version": "1.0.0-*",
"buildOptions": {
"debugType": "portable"
},
"dependencies": {},
"frameworks": {
"netstandard1.6": {
"dependencies": {
"NETStandard.Library": "1.6.0"
}
}
}
}
我缺少什么?
截至撰写本文时,GetProperties()
is now:
typeof(Object).GetTypeInfo().DeclaredProperties;
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)