Ejemplo n.º 1
0
        public void WriteHeader(ITextOutput output)
        {
            var cols = tablesStreamVM.TableInfo.Columns;

            output.Write(string.Format("{0}\t{1}\t{2}", dnSpy_AsmEditor_Resources.RowIdentifier, dnSpy_AsmEditor_Resources.Token, dnSpy_AsmEditor_Resources.Offset), TextTokenKind.Comment);
            for (int i = 0; i < cols.Count; i++)
            {
                output.Write("\t", TextTokenKind.Comment);
                output.Write(tablesStreamVM.GetColumnName(i), TextTokenKind.Comment);
            }
            if (tablesStreamVM.HasInfo)
            {
                output.Write("\t", TextTokenKind.Comment);
                output.Write(tablesStreamVM.InfoName, TextTokenKind.Comment);
            }
            output.WriteLine();
        }
Ejemplo n.º 2
0
        public void WriteHeader(IDecompilerOutput output)
        {
            var cols = MetaDataTableVM.TableInfo.Columns;

            output.Write(string.Format("{0}\t{1}\t{2}", dnSpy_AsmEditor_Resources.RowIdentifier, dnSpy_AsmEditor_Resources.Token, dnSpy_AsmEditor_Resources.Offset), BoxedTextColor.Comment);
            for (int i = 0; i < cols.Count; i++)
            {
                output.Write("\t", BoxedTextColor.Comment);
                output.Write(MetaDataTableVM.GetColumnName(i), BoxedTextColor.Comment);
            }
            if (MetaDataTableVM.HasInfo)
            {
                output.Write("\t", BoxedTextColor.Comment);
                output.Write(MetaDataTableVM.InfoName, BoxedTextColor.Comment);
            }
            output.WriteLine();
        }