这是我的代码:
AxaptaObject dict = (AxaptaObject)DynAx.CallStaticClassMethod("Dictionary", "new");
object id = (object)dict.Call("enumName2Id", "TimeZone");
AxaptaObject dictEnum = (AxaptaObject)DynAx.CallStaticClassMethod("DictEnum", "new", id);
string s = (string)dictEnum.Call("index2Label", "2");
我收到以下错误:
Error executing code: Dictionary object not initialized.
为什么在 Dictionary 对象的初始化过程中会抛出该错误?请帮忙。