你知道我該怎麼做嗎?如何將int數組轉換爲字典?
public override IDictionary<int, DateTime> GetList()
{
var AdList = new Dictionary<int, DateTime>();
AdList = client.GetAdList(loginTicket); //it returns int array.
// I've also tried AdList =client.GetAdList(loginTicket).ToDictionary<int, DateTime>(); it doesn't work..
return AdList;
}
生成日期? – Sergio
此函數返回在給定日期(DateTime持有它)之前發佈的廣告列表.Sergio,感謝您的回覆。 – Gece