Ejemplo n.º 1
0
 public override string ToString()
 {
     return("\nEmployee Number: " + EmployeeNumber +
            "\n           Name: " + Name +
            "\n   Date of Hire: " + DateOfHire.ToShortDateString() +
            "\n Monthly Salary: " + MonthlySalary.ToString("C"));
 }
Ejemplo n.º 2
0
 public override string ToString()
 {
     return($"ID: {EmployeeID} - {base.ToString()}\nHire Date: {DateOfHire.ToShortDateString()}\tActive Employee: {IsEmployed.ToYesNo(), 3}\t Salary: {AnnualSalary:c2}");
 }
Ejemplo n.º 3
0
 GetHashCode()
 {
     return(base.GetHashCode()
            ^ DateOfHire.GetHashCode());
 }