Where do I mark a lambda expression async?

后端 未结 2 997
情深已故
情深已故 2020-12-04 14:51

I\'ve got this code:

private async void ContextMenuForGroupRightTapped(object sender, RightTappedRoutedEventArgs args)
{
    CheckBox ckbx = null;
    if (se         


        
2条回答
  •  醉梦人生
    2020-12-04 15:20

    And for those of you using an anonymous expression:

    await Task.Run(async () =>
    {
       SQLLiteUtils slu = new SQLiteUtils();
       await slu.DeleteGroupAsync(groupname);
    });
    

提交回复
热议问题