示例#1
0
 private static Employee HandleEmployee(XContainer xml)
 {
     var m = new Employee
                 {
                     Salary = decimal.Parse(xml.Elements("Salary").First().Value),
                     Person = HandlePerson(xml.Elements("Person").FirstOrDefault())
                 };
     return m;
 }
示例#2
0
 public Department(string name, Employee manager)
     : this()
 {
     Name = name;
     Manager = manager;
 }