考虑:usingSystem.Threading.Tasks;classProgram{staticvoidMain(string[]args){Cc=newC();c.FooAsync();//warningCS4014:Becausethiscallisnotawaited,executionofthecurrentmethodcontinuesbeforethecalliscompleted.Considerapplyingthe'await'operatortotheresultofthecall.((I)c).FooAsync();//Nowarning}}classC:I{