public static void Main() { var table = new MyTable(); var data = table.Data; var writer = new StreamWriter(data); writer.Write("Table data"); writer.Flush(); data.Position = 0; var reader = new StreamReader(data); var mensaje = reader.ReadToEnd(); Console.WriteLine(mensaje); // Too many dispose table.Close(); table.Dispose(); table.Close(); table.Dispose(); }