Exemple #1
0
        private static void ReadSymbols(ModuleDefinition module, ReaderParameters parameters)
        {
            ISymbolReaderProvider symbolReaderProvider = parameters.SymbolReaderProvider;

            if (symbolReaderProvider == null && parameters.ReadSymbols)
            {
                symbolReaderProvider = SymbolProvider.GetPlatformReaderProvider();
            }
            if (symbolReaderProvider != null)
            {
                module.SymbolReaderProvider = symbolReaderProvider;
                ISymbolReader reader = (parameters.SymbolStream != null) ? symbolReaderProvider.GetSymbolReader(module, parameters.SymbolStream) : symbolReaderProvider.GetSymbolReader(module, module.FullyQualifiedName);
                module.ReadSymbols(reader);
            }
        }