שאלה ב c#
עשיתי thread ואני מריץ אותו ככה t.Download = new Thread(new ThreadStart(Download()); t.Download.Start(); רץ סבבה... אבל כשאני רוצה שהוא יקבל שני פרמטרים הוא רושם לי בעיה... string list = "search" int selectedIndex = 0; t.Download = new Thread(new ThreadStart(Download(list,selectedIndex)); t.Download.Start();] נרשמת שגיעה בקומפיילר - Method name exepted נ.ב כשאני רושם את הפונקציה Download(list,selectedIndex); בלי thread אז האפליקציה פועלת... מה לעשות?!?!
עשיתי thread ואני מריץ אותו ככה t.Download = new Thread(new ThreadStart(Download()); t.Download.Start(); רץ סבבה... אבל כשאני רוצה שהוא יקבל שני פרמטרים הוא רושם לי בעיה... string list = "search" int selectedIndex = 0; t.Download = new Thread(new ThreadStart(Download(list,selectedIndex)); t.Download.Start();] נרשמת שגיעה בקומפיילר - Method name exepted נ.ב כשאני רושם את הפונקציה Download(list,selectedIndex); בלי thread אז האפליקציה פועלת... מה לעשות?!?!