Exemple #1
0
        public string GetValues()
        {
            string texto = "Id: " + EmployeeId + Environment.NewLine;

            texto += "Nombre: " + EmployeeName + Environment.NewLine;
            texto += "Salario: " + EmployeeSalary.ToString() + Environment.NewLine;
            texto += "Puesto: " + EmployeePosition + Environment.NewLine;

            return(texto);
        }
Exemple #2
0
 public override string ToString()
 {
     return($"Employee Name: {EmployeeName}, Employee Designation: {EmployeeDesignation}, Employee Salary: {EmployeeSalary.ToString()}");
 }