About get method at run time using C#

Y

Yiu

my code is here

String information;

public Class temp{
infomation=touristInformation;
Type myType=Type.GetType(Information);
Object o=Activator.CreateInstance(myType);
..
..
..
}
touristInformation is a class name (touristInformation.cs)
is it possible to do that to create touirstInformation object in run
time?
And is it possible to get the method and use the method in
touristInformation.cs in runtime?

thx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top