示例#1
0
文件: Program.cs 项目: anyast103/Ex
 public Person(string[] inforamtion, WorkPlace work)
 {
     Name   = inforamtion[0];
     Work   = work;
     Salary = int.Parse(inforamtion[2]);
     if (inforamtion.Length == 4)
     {
         IsHead = Convert.ToBoolean(inforamtion[3]);
     }
     else
     {
         IsHead = false;
     }
 }
示例#2
0
文件: Program.cs 项目: anyast103/Ex
 static void Main(string[] args)
 {
     DataReader.GetPerson();
     WorkPlace.GetWorkPlaceInfo();
 }