1、IList<T>表怎么获取指定行指定列的内容
2、IList<T>有什么好处呢
3、是不是叫反射,具体的解释一下

解决方案 »

  1.   

    http://hi.baidu.com/linrao/blog/item/06fc6c2202834f46935807ed.html
      

  2.   

    例如
    public class User {
        private String name;
        private String id;    public String Name
        {
            get {return this.name;}
            set {this.name=value;}
        }
        public String Id
        {
            get {return this.id;}
            set {this.id=value;}
        }
    }
    public class Main {
        public Main()
        {
            IList<User> lstUser = new List<User>();
            User user = new User();
            user.Name = "aaa";
            user.Id = "1";
            lstUser.Add(user);
            String name = lstUser[0].Name;
            String id = lstUser[0].Id;
        }
    }
    这个是泛型不是反射,概念不同。