C#多重泛型问题
public class ManagerHelper{
public static Dictionary<string, Class> School=new Dictionary<string,Class> ();
}
-----------------------------------------------------------------------------------
public class Class
{
private string className;
public string ClassName
{
get { return className; }
set { className = value; }
}
private DateTime classStartTime;
public DateTime ClassStartTime
{
get { return classStartTime; }
set { classStartTime = value; }
}
private DateTime classEndTime;
public DateTime ClassEndTime
{
get { return classEndTime; }
set { classEndTime = value; }
}
private Dictionary<int, Student> students;
public Dictionary<int, Student> Students
{
get { return students; }
set { students = value; }
}
}
------------------------------------------------------------------------------------
public class Student
{
private int studentNum;
public int StudentNum
{
get { return studentNum; }
set { studentNum = value; }
}
private string studentName;
public string StudentName
{
get { return studentName; }
set { studentName = value; }
}
private string studentSex;
public string StudentSex
{
get { return studentSex; }
set { studentSex = value; }
}
private string studentRace;
public string StudentRace
{
get { return studentRace; }
set { studentRace = value; }
}
private string studentAddress;
public string StudentAddress
{
get { return studentAddress; }
set { studentAddress = value; }
}
private string studentPhone;
public string StudentPhone
{
get { return studentPhone; }
set { studentPhone = value; }
}
private string studentPostaCode;
public string StudentPostaCode
{
get { return studentPostaCode; }
set { studentPostaCode = value; }
}
private string className;
public string ClassName
{
get { return className; }
set { className = value; }
}
}
如何调用这个Student类里的东西呢?
什么意思 ?没搞懂 想要实现什么?
页:
[1]