相关疑难解决方法(0)

类型不包含'GetProperties'的定义

我正在将库项目迁移到.net标准,当我尝试使用System.ReflectionAPI调用时,我收到以下编译错误Type:GetProperties():

类型不包含'GetProperties'的定义

这是我的project.json:

{
  "version": "1.0.0-*",
  "buildOptions": {
    "debugType": "portable"
  },
  "dependencies": {},
  "frameworks": {
    "netstandard1.6": {
      "dependencies": {
        "NETStandard.Library": "1.6.0"
      }
    }
  }
}
Run Code Online (Sandbox Code Playgroud)

我错过了什么?

.net-core .net-standard

16
推荐指数
2
解决办法
4349
查看次数

将类转换为数组

我有一个DisplayedData类......

  public class DisplayedData
  {
    private int _key;
    private String _username;
    private String _fullName;
    private string _activated;
    private string _suspended;


    public int key { get { return _key; } set { _key = value; } }
    public string username { get { return _username; } set { _username = value; } }
    public string fullname { get { return _fullName; } set { _fullName = value; } }
    public string activated { get { return _activated; } set …
Run Code Online (Sandbox Code Playgroud)

c# arrays class

11
推荐指数
1
解决办法
1万
查看次数

标签 统计

.net-core ×1

.net-standard ×1

arrays ×1

c# ×1

class ×1