public string GetText(Disassembler disasm, VisibilityFlags flags) { try { disasm.Clear(); Disassemble(disasm, flags.HasFlag(VisibilityFlags.PublicOnly)); } catch (Exception e) { disasm.AppendLine(); disasm.Append(e); disasm.AppendLine(); } return(disasm.GetText()); }