小编KC *_*C P的帖子

如何在c#中使用带有out参数的异步等待

我们如何在没有 out 参数的 C# 中安全地使用 async-await。

例如

async public void someMethod(){
     await someOtherMethod (out string outputFromSomeOtherMethod);
     .......
     .....

} 
Run Code Online (Sandbox Code Playgroud)

c# asynchronous async-await

-1
推荐指数
1
解决办法
1583
查看次数

标签 统计

async-await ×1

asynchronous ×1

c# ×1