当我尝试按以下方式初始化bi[0]
时:
hhInventory.HHInventoryWebService[] bi = new hhInventory.HHInventoryWebService[1];
bi[0] = new hhInventory.HHInventoryWebService();
我收到以下错误:
“无法生成临时类(结果= 1)。\ r \ n错误CS0029: 无法将类型'TestClient_1.hhInventory.intfVlan'隐式转换为 'TestClient_1.hhInventory.intfVlan []'\ r \ nerror
CS0029:无法隐式转换类型 'TestClient_1.hhInventory.intfFilter' 'TestClient_1.hhInventory.intfFilter []'\ r \ nerror
CS0029:无法隐式转换类型 'TestClient_1.hhInventory.staticGroup'到 'TestClient_1.hhInventory.staticGroup []'\ r \ nerror
CS0029:无法隐式转换类型 'TestClient_1.hhInventory.accessList' 'TestClient_1.hhInventory.accessList []'\ r \ n“
如何解决此错误?