下面是我的代码给出了一个错误: 无法隐式转换类型“System.Collections.Generic.List”到“字符串[]'无法隐式转换类型“System.Collections.Generic.List <string[]>”到“字符串[]”
我试了好几次来解决这个错误。但我没有这样做。 ,如果任何机构可以建议什么可能是解决..谢谢:)
public GetContentResponse GetContent(abcServiceClient client, QueryPresentationElementIDsResponse querypresentationelementresponse)
{
GetContentRequest GetContentRequest = new GetContentRequest();
GetContentResponse contentresponse = new GetContentResponse();
querypresentationelementresponse = presentationElementId(client);
List<string[]> chunks = new List<string[]>();
for (int i = 0; i < querypresentationelementresponse.IDs.Length; i += 25)
{
chunks.Add(querypresentationelementresponse.IDs.Skip(i).Take(25).ToArray());
contentresponse = client.GetContent(new GetContentRequest()
{
IDs = chunks // here i get this error
});
}
return contentresponse;
}
我也做了同样的事情..但这并没有帮助我。 如果您建议这样做,我仍然可以再试一次。 :) 非常感谢。 – 2013-04-21 21:56:33
你在哪一行得到错误? – Kenneth 2013-04-21 21:57:06
按照您所说的做完后显示的错误。 不能隐式地将类型'string [] []'转换为'string []' – 2013-04-21 21:58:30