对象中包含对象的转化
有一个jobs类
public class jobs
{
public jobs()
{ }
private int _job_id;
private string _job_desc;
private int _min_lvl;
private int _max_lvl;
public int job_id
{
set { _job_id = value; }
get { return _job_id; }
}
public string job_desc
{
set { _job_desc = value; }
get { return _job_desc; }
}
public int min_lvl
{
set { _min_lvl = value; }
get { return _min_lvl; }
}
public int max_lvl
{
set { _max_lvl = value; }
get { return _max_lvl; }
}
}
还有一个person类
public class person
{
private string _name;
private int _id;
private jobs _workjob;
public int ID
{
set