Example #1
0
        static LibAnalyzer FindAnalyzer(string libPath, Dictionary <string, LibAnalyzer> analyzers)
        {
            LibAnalyzer analyzer = null;

            analyzers.TryGetValue(libPath, out analyzer);
            return(analyzer);
        }
Example #2
0
        static Dictionary <string, LibAnalyzer> InitAnalyzers(Dictionary <string, string> dumpPathes)
        {
            var analyzers = new Dictionary <string, LibAnalyzer>();

            foreach (var pathPair in dumpPathes)
            {
                var analyzer = new LibAnalyzer(pathPair.Value);
                if (analyzer.Load())
                {
                    analyzers.Add(pathPair.Key, analyzer);
                }
            }
            return(analyzers);
        }