예제 #1
0
        public ISymbolWriter GetSymbolWriter(ModuleDefinition module, string fileName)
        {
            ISymbolReader symbolReader = module.SymbolReader;

            if (symbolReader == null)
            {
                throw new InvalidOperationException();
            }
            if (module.Image != null && module.Image.HasDebugTables())
            {
                return(null);
            }
            return(symbolReader.GetWriterProvider().GetSymbolWriter(module, fileName));
        }