Async property in c#

后端 未结 4 1505
礼貌的吻别
礼貌的吻别 2020-12-17 01:14

In my windows 8 application there is a global class where there are a few static properties like:

public class EnvironmentEx
{
     public static Us         


        
4条回答
  •  轮回少年
    2020-12-17 01:34

    Good solution: Don't make a property. Make an async method.

    "I hate await, how can I make everything synchronous?" solution: How to call asynchronous method from synchronous method in C#?

提交回复
热议问题