String Information;
Information=touristSpotInformation;//touristSpotInformation is a class
name
Type myType=typeof(Information);
Object o=Activator.CreateInstance(myType);
But "Information" not a class;
How to change "Information" to class?
I have try to do this:
Type myType=Type.getType(Information);
But it have run time exception ArgumentNulException.
Have any good suggestion to create instance use class name which is
string in run time?
And after new instance, how to call the method of that class?
thx