M
miki
Hi all,
How can I cast from a string to an object? For example, suppose I have
classes as employee, manager, supervisor, director,...I have a user
interface that takes a person name, then performs query database and
returns a string which tells that person is either employee,
manager,...If it's student, a student object will be return. I can use
switch case to do that, but I think .net probaly has a simpler way to
solve that. Thanks in advance
How can I cast from a string to an object? For example, suppose I have
classes as employee, manager, supervisor, director,...I have a user
interface that takes a person name, then performs query database and
returns a string which tells that person is either employee,
manager,...If it's student, a student object will be return. I can use
switch case to do that, but I think .net probaly has a simpler way to
solve that. Thanks in advance