0
我有我的declation一個問題,當我使用invoke方法作爲一個MethodInfo類型:Invoke方法動態地在VB.Net SAP Business One的
錯誤消息:
object reference not set to an instance of an object.
Dim oMethod As MethodInfo
oMethod = _StepInfo.CurrSysType.GetMethod(Me._MethodToRun, _MemberAccess)
'calling method on object by reflection
Dim dStart As DateTime = DateTime.Now
Dim iRes As Integer = 0
iRes = CInt(oMethod.Invoke(_StepInfo.CurrObj, Nothing))
Dim dEnd As DateTime = DateTime.Now
System.Diagnostics.Debug.WriteLine("Processing Object: " & (dEnd - dStart).TotalMilliseconds) </i>
你好,新版本的SAP Business One 9.2有一個限制許可,我們不能使用反射。 –
很高興知道。謝謝! – Overhed