生成异常MessageBox.我怎样才能MessageBox在async方法中使用?
private async void Purchheard(object sender,EventArgs e)
{
Debug.WriteLine("??????? ???????");
try
{
await CurrentApp.RequestProductPurchaseAsync(ID,false);
if(license.ProductLicenses[ID].IsActive)
{
world.is_freemium=false;
}
}
catch (Exception ex)
{
MessageBox.Show("Finished!");
}
}
Run Code Online (Sandbox Code Playgroud) 尝试在Windows应用商店应用中构建Unity 3D项目时,会发生此错误
System.IO.Stream'不包含'Close'的定义,并且没有扩展方法'Close'接受类型'System.IO.Stream'的第一个参数可以找到
如何在Windows 8中使用Streams?