if (cr.Errors.HasErrors)
{
throw new ArgumentOutOfRangeException("expression","所给定的表达式["+expression+"]无法通过编译,请检查并修改后重试!");
}
else
{
Assembly a = cr.CompiledAssembly;
Type t = a.GetType("AjaxDemo.Test",true,true);
mi = t.GetMethod("Exe", BindingFlags.Static | BindingFlags.Public);
return mi.Invoke(null, new object[0]);
}
}
}
}