1 实体类
public class User
{
public int Age {
get; set; }
public string Id {
get; set; }
[Display(Name = "姓名")]
public string Name {
get; set; }
public string QQ {
get; set; } = "4126488";
}
2 将 新数据加入到 LIST
private void btnWriteText_Click(object sender, EventArgs e)
{
Random myRandom = new Random(