Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Asynchronous method 'anonymous' should not return void

$
0
0

Asynchronous method 'anonymous' should not return void

Can someone helps me resolve this problem I tried everything.
I usually know how to resolve that problem but not with anonymous method

public DelegateCommand EnterButton { get; set; }

public StartPageViewModel()
{
    Title = "title_black.png";
    PasswordPlaceholder = "Lozinka";

    EnterButton = new DelegateCommand( async () => { await enterButtonClicked();});  //<--- Here I am getting that warning
}

public async Task enterButtonClicked()
{

}

Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>