public override Object flush() { try { byte[] result= ((MemoryStream)stream).ToArray(); stream.Flush(); return result; } catch (Exception e) { if (stream != null) foreign.fail( "flush", e.Message, this ); return bbool.faux; } }