我在VBS對象: Msgbox myobject.parametro("parm")
我能以這種方式使用它在C#: Object test = myobject.GetType().InvokeMember("parametro",
BindingFlags.GetProperty,
null,
myobject,
new object[] { "par
下面考慮的情況 - public class Derived : Base{
X(ParamX){} // xx method
X(ParamY){} // xy
}
public abstract class Base {
InvokeX(IParametr param){
...some magic
}
}
public clas
public class Test{
public string name{get;set}
public short age{get;set;}
}
.... var type = typeof(Test);
var ins = Activator.CreateInstance(type);
type.InvokeMember("name", BindingFl
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
WebBrowser1.Document.GetElementById("xn_logout").InvokeMember("click")
End Sub
無法點擊從網站的註銷鏈接我在這裏做錯了什麼。