一次性接口错误 [英] Idisposable interface error

查看:56
本文介绍了一次性接口错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此代码有什么问题

私人

发件人,

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆