0
オペレータを待たなければならない方法でエラーが発生しますが、どこにオペレータとasyncとTaskが必要ですか? :)不足しているオペレータはありますか?
public async void OnLocationChanged(Location location)
{
_currentLocation = location;
if (_currentLocation == null)
{
_locationText.Text = "Unable to determine your location. Try again in a short while.";
}
else
{
_locationText.Text = string.Format("{0:f6},{1:f6}", _currentLocation.Latitude, _currentLocation.Longitude);
as
}
}
が、私はちょうどメソッドのシグネチャからキーワードasycn削除:)
[どのように、いつ使用\ 'のhttp://stackoverflow.com/a/19985988/2850543 https://msdn.microsoft.com/en-us/library/mt674882.aspx –
可能な重複async \ 'と\' await \ '](http://stackoverflow.com/questions/14455293/how-to-and-when-use-async-and-await) –
あなたの編集に対応するには、「特定のヘルプが必要です上記の例では:非同期、待機中、およびタスク上のドキュメントを読む場合は、問題の解決方法を理解するでしょう。あなたがあなたのツールを理解していなければ、遠くには行きません。 –