コード例 #1
0
 /* determines whether two employee objects are equal    */
 /* TODO: revisit this                                   */
 public bool Equal(Employee e, Employee f)
 {
     if ((e.EmployeeNumber == f.EmployeeNumber) && (e.GetType() == f.GetType())) {
         return true;
     }
     return false;
 }
コード例 #2
0
 /* TODO re-do */
 public bool Equals(Employee e, Employee f)
 {
     if (e.EmployeeNumber == f.EmployeeNumber)
     {
         return true;
     }
     return false;
 }
コード例 #3
0
 /* adds an employee to the company */
 public void addEmployee(Employee e)
 {
     company.Add(e);
 }