CS0029:无法在 C#/Specflow 中将类型列表转换为数组

CS0029: Cannot convert type List to Array in C#/Specflow

我收到以下错误:

Error CS0029 Cannot implicitly convert type Could you please help me how to fix it? I have tried a lot of things but I cannot work it out.. Thank you in advance.

AddUpdateData 似乎是 CountryStateData[] 类型,但您提供的是 List<CountryStateData>

所以提供一个数组来代替

ManageCountryStatesData returnValue = services.BackendService.CountryManageCountryStates(services.ApiKey, services.SessionKey,
  new ManageCountryStatesOptions()
  {
    AddUpdateData = new CountryStateData[1] { myState }
  });