string assembly = "Ektron.Cms.ObjectFactory.dll";
string asspath = path + "bin\\" + assembly;
Assembly run_obj = Assembly.LoadFrom(@asspath);
paraObj[0] = run_obj.GetType(
"Ektron.Cms.Search.SearchContentProperty",
true,
true
).GetProperty("Language");
string equalExp = "Ektron.Cms.Search.Expressions.EqualsExpression";
Type objclass = run_obj.GetType(equalExp, true, true);
object objObj = Activator.CreateInstance(objclass, paraObj);
Activator.CreateInstance(objclass, paraObj)
抛出错误:
System.Reflection.RuntimeParameterInfo 不能隐式转换为 Ektron.Cms.Search.Expresions.PropertyExpression