student aa= new student();
Type type = 标题.GetType();
PropertyInfo[] propertyInfos = type.GetProperties();
List<string> heads = new List<string>();
foreach (var item in propertyInfos)
{
heads.Add(item.Name);//将属性添加到集合里
}
public class student{
public string id{get;set;}
public string name{get;set;}
public string sex{get;set;}
public string age{get;set;}
}