public static void EchoAsync(
string param1, string param2, string key, string secret, Service.OnSuccess success, Service.OnFailed failed)
{
BackgroundWorker worker = Service.CreateWorkerAsync(success, failed);
worker.DoWork += (o, args) => (args.Result = Echo(param1, param2, key, secret)); //(Line4)
worker.RunWorkerAsync();
}
當我建立這個「錯誤CS0201:只有分配,調用,遞增,遞減和新對象表達式可以用作聲明」發生在4號線錯誤CS0201,這是什麼?
我是新的C#和我不知道如何解決這個問題...
請幫助我。
謝謝。
用途{花括號}代替(括號內)。 –