public bool isModuleCached(string ModuleName, string ModuleFilepath) { // Do not process twice the same item ModuleCacheKey ModuleKey = new ModuleCacheKey(ModuleName, ModuleFilepath); return(ModulesCache.ContainsKey(ModuleKey)); }
public PeDependencyItem GetModuleItem(string ModuleName, string ModuleFilepath, ModuleSearchStrategy SearchStrategy, int RecursionLevel) { // Do not process twice the same item ModuleCacheKey ModuleKey = new ModuleCacheKey(ModuleName, ModuleFilepath); if (!ModulesCache.ContainsKey(ModuleKey)) { ModulesCache[ModuleKey] = new PeDependencyItem(this, ModuleName, ModuleFilepath, SearchStrategy, RecursionLevel); } return(ModulesCache[ModuleKey]); }