Ejemplo n.º 1
0
        public void DumpTable(TextWriter w, MetadataTableIndex tableIndex)
        {
            switch (tableIndex)
            {
            case MetadataTableIndex.Assembly:
                DumpAssemblyTable(w);
                break;

            case MetadataTableIndex.AssemblyRef:
                DumpAssemblyRefTable(w);
                break;

            case MetadataTableIndex.Module:
                DumpModuleTable(w);
                break;

            case MetadataTableIndex.ModuleRef:
                DumpModuleRefTable(w);
                break;

            case MetadataTableIndex.ExportedType:
                DumpExportedTypeTable(w);
                break;

            case MetadataTableIndex.CustomAttribute:
                DumpCustomAttributeTable(w);
                break;

            case MetadataTableIndex.Document:
                DumpDocumentTable(w);
                break;

            case MetadataTableIndex.MethodDebugInformation:
                DumpMethodDebugInformationTable(w);
                break;

            case MetadataTableIndex.LocalScope:
                DumpLocalScopeTable(w);
                break;

            case MetadataTableIndex.ImportScope:
                DumpImportScopeTable(w);
                break;

            case MetadataTableIndex.CustomDebugInformation:
                DumpCustomDebugInfoTable(w);
                break;

            default:
                throw new NotImplementedException();
            }
        }
Ejemplo n.º 2
0
        public void DumpTable(TextWriter w, MetadataTableIndex tableIndex)
        {
            switch (tableIndex)
            {
            case MetadataTableIndex.Assembly:
                DumpAssemblyTable(w);
                break;

            case MetadataTableIndex.AssemblyRef:
                DumpAssemblyRefTable(w);
                break;

            case MetadataTableIndex.ModuleRef:
                DumpModuleRefTable(w);
                break;

            default:
                throw new NotImplementedException();
            }
        }