How does the code looks that would create an object of class:
string myClass = \"MyClass\";
Of the above type, and then call
The following assumes an object with a public constructor and a public method that returns some value but takes no parameters.
var object = Activator.CreateInstance( "MyClass" ); var result = object.GetType().GetMethod( "MyMethod" ).Invoke( object, null );