using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
namespace refent
{
class Program
{
static void Main(string[] args)
{
Type tp = Type.GetType("FanShe");
object o = Activator.CreateInstance(tp); //创建实例
MethodInfo mi = tp.GetMethod("xxx"); //反射方法
object ret = mi.Invoke(o, null); //执行方法
string str = ret.ToString(); //获取结果
}
public double Area()
{
return 2.0 * 3.0;
}
}
class FanShe
{
}
}