I
ichor
hi
what is the use of the typeof keyword , and how does it differ from the
GetType method. i found the GetType method useful but i fail to understand
the use of the typeof method.
i have tried out a very simple example which i made up myself.
Employee e = new Employee();
ContractEmp ec =new ContractEmp();
MessageBox.Show(typeof(Employee).ToString());
Type T = e.GetType ();
MessageBox.Show (T.ToString());
any other examples which outline their specific uses would be appreciated.
also the typeof keyword always fails in the immidiate window. why is that .
the GetType method works fine.
what is the use of the typeof keyword , and how does it differ from the
GetType method. i found the GetType method useful but i fail to understand
the use of the typeof method.
i have tried out a very simple example which i made up myself.
Employee e = new Employee();
ContractEmp ec =new ContractEmp();
MessageBox.Show(typeof(Employee).ToString());
Type T = e.GetType ();
MessageBox.Show (T.ToString());
any other examples which outline their specific uses would be appreciated.
also the typeof keyword always fails in the immidiate window. why is that .
the GetType method works fine.