得到属性名

来源:互联网 发布:防电脑监控软件 编辑:程序博客网 时间:2024/05/24 04:14
Type t = typeof(《类名》);
            int i = 0;
            foreach (PropertyInfo pi in t.GetProperties(BindingFlags.Instance | BindingFlags.Public))
            {
                pi.Name;
            }
原创粉丝点击