111,125
社区成员
发帖
与我相关
我的任务
分享 public class Student
{
private string name;
public string Name
{
get { return name; }
set { name = value; }
}
private string value;
public string Value
{
get { return this.value; }
set { this.value = value; }
}
}
List<Student> list = new List<Student>();
Student stu = new Student();
stu.Name = "zhangsan";
stu.Value = "1";
//或者用
Dictionary<int, string> dic = new Dictionary<int, string>();
dic.Add(1, "张三");