我有一个错误“无法将类型“CorrespondingBall.MyCloudService.ArrayOfString”隐式转换为“System.Collections.Generic.List”。有人知道我该如何解决吗?我已经阅读了将字符串数组转换为 List<string> , 但我不理解和实现它。我的代码如下。
ServiceSoapClient client = new ServiceSoapClient();
List<string> objectiveList = new List<string>();
client.getObjectiveCompleted += new EventHandler<getObjectiveCompletedEventArgs>(getObjectiveCompletedHandler);
client.getObjectiveAsync();
我收到了错误
private void getObjectiveCompletedHandler(object sender, getObjectiveCompletedEventArgs e)
{
objectiveList = e.Result;
}