Beispiel #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"));
 }
Beispiel #2
0
 public override string ToString()
 {
     return($"ID: {EmployeeID} - {base.ToString()}\nHire Date: {DateOfHire.ToShortDateString()}\tActive Employee: {IsEmployed.ToYesNo(), 3}\t Salary: {AnnualSalary:c2}");
 }
Beispiel #3
0
 GetHashCode()
 {
     return(base.GetHashCode()
            ^ DateOfHire.GetHashCode());
 }