C# と VB.NET の質問掲示板

わんくま同盟

ASP.NET、C++/CLI、Java 何でもどうぞ

C# と VB.NET の入門サイト


(過去ログ 94 を表示中)
■56480 / )  直列化
□投稿者/ riku (1回)-(2011/01/14(Fri) 21:37:03)

分類:[C#] 

        private void Form1_FormClosed(Object sender, FormClosedEventArgs e)
        {
            try
            {
                System.IO.FileStream fs = new System.IO.FileStream("data.bin", System.IO.FileMode.Create, FileAccess.Write);
                BinaryFormatter bf = new BinaryFormatter();
                bf.Serialize(fs, members);
                fs.Close();
            }
            catch (Exception exception)
            {
                MessageBox.Show(exception.Message);
            }

        }


これを実行すると{"アセンブリ 'report, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' の型 'report.Member' はシリアル化可能として設定されていません。"}とでるのですが、何が原因なのでしょうか?
ご教授おねがします。

返信 編集キー/


管理者用

- Child Tree -