public void UnboxThisEmployee(object o) { EMPLOYEE temp = (EMPLOYEE)o; Console.WriteLine(temp.name + " is alive!"); }
public void DisplayEmpStats(EMPLOYEE e) { Console.WriteLine("Here is {0} \'s info:", e.name); Console.WriteLine("Department ID: {0}", e.deptID); Console.WriteLine("Title: {0}", Enum.Format(typeof(EmpType), e.title, "G")); }