一次性接口错误 [英] Idisposable interface error
问题描述
此代码有什么问题
私人
发件人,
voidbutton1_Click(objectsender, RoutedEventArgse)
{
{
应用存储 =
varappstorage = IsolatedStorageFile.GetUserStoreForApplication();
文件名 = ;
stringfilename = "simple.text";
( var 文件 = appstorage.OpenFile(文件名,System.IO. FileMode .OpenOrCreate, System.IO. FileAccess .Write))
using(varfile = appstorage.OpenFile(filename, System.IO.FileMode.OpenOrCreate, System.IO.FileAccess.Write))
{
{
( var 作家 =
using(varwriter = newstreamwriter(file))
{
writer.write(InfoTextBox.Text);
writer.write(InfoTextBox.Text);
}
}
}
}
}
ms
推荐答案
一个问题.在特定情况下是否会发生接口错误?
Doesn't look to be an issue. Does the interface error occur in a particular scenario?
这篇关于一次性接口错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!