About get method at run time using C#

  • Thread starter Thread starter Yiu
  • Start date Start date
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
 
Back
Top