public static void Main()
Type type = typeof(MyClass);
Activator.CreateInstance(type, new object[] { 10 });
Activator.CreateInstance(type, new object[] { "10" });
ConstructorInfo ctor = type.GetConstructor(new[] { typeof(string) });
object instance = ctor.Invoke(new object[] { "10" });
Console.WriteLine("Int parameter {0}", n);
Console.WriteLine("String parameter {0}", n);