0
來自服務器的數據先在服務器代碼工作以及得到使用WCF的Windows手機8
//declare the target list to be the reciver
List<string> list = new List<string>();
//at the first declare that
//then call it/
private void check(double l, double lo)
{
Service1Client client = new Service1Client();
client.pbackCompleted += new EventHandler<pbackCompletedEventArgs>(pResult);
client.pbackAsync(l, lo);
}
private void pResult(object sender, pbackCompletedEventArgs e)
{
list = e.Result.ToList<string>();
}
但在調試名單仍然爲空? 和函數pResult,因爲它不在這裏?
如何返回列表並將其分配給設備代碼的列表?
在此先感謝
它不起作用 它是如何工作的,你刪除變量我會收到數據 – user3585269
你可以把這個變量看看是什麼結果吧,我剛剛評論了代碼,請檢查編輯後的答案 – Hitesh