Type.GetProperties() 有时候会返回 0 数组
经过排查,和Type类有关
Type里的属性需要有索引器 get;set,否则将获取不到。
例子:
public class FenZhengInput
{
public string sInput { get; set; }
public string code { get; set; }
}
一定要写{get;set;},否则获取不到!!!!!! 别犯这种猪鼻错误!!!
Type.GetProperties() 有时候会返回 0 数组
经过排查,和Type类有关
Type里的属性需要有索引器 get;set,否则将获取不到。
例子:
public class FenZhengInput
{
public string sInput { get; set; }
public string code { get; set; }
}
一定要写{get;set;},否则获取不到!!!!!! 别犯这种猪鼻错误!!!