日期:2014-05-17 浏览次数:20938 次
public interface IMethodExample
{
string Method();
}
public class MethodExample: IMethodExample
{
public string Method()
{
string str = " 1234567 ";
return str;
}
}
IMethodExample tt= Type.GetType("MethodExample") as IMethodExample;
Response.Write(tt == null);
IMethodExample tt = Activator.CreateInstance(Type.GetType("命名空间.MethodExample")) as IMethodExample;