예제 #1
0
        public void UnboxThisEmployee(object o)
        {
            EMPLOYEE temp = (EMPLOYEE)o;

            Console.WriteLine(temp.name + " is alive!");
        }
예제 #2
0
 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"));
 }