List<User>?users=?new?List<User>();
users.Add(new?User{ID=1,Name="王老师",Pwd=1});
users.Add(new?User{ID=2,Name="李老师",Pwd=1});
users.Add(new?User{ID=3,Name="马老师",Pwd=1});
List<User> users = new List<User>{
new User {ID = 1, Name = "王老师", Pwd = 1 },
new User { ID = 2, Name = "李老师", Pwd = 1 },
new User { ID = 3, Name = "马老师", Pwd = 1 }
};