예제 #1
0
        public static HashSet <string> GetModulesFromICalls(string icallsListFile)
        {
            string[]         strArray  = File.ReadAllLines(icallsListFile);
            HashSet <string> stringSet = new HashSet <string>();

            foreach (string icall in strArray)
            {
                string icallModule = ModuleMetadata.GetICallModule(icall);
                if (!string.IsNullOrEmpty(icallModule))
                {
                    stringSet.Add(icallModule);
                }
            }
            return(stringSet);
        }
예제 #2
0
        public static HashSet <string> GetModulesFromICalls(string icallsListFile)
        {
            var icalls = File.ReadAllLines(icallsListFile);
            var result = new HashSet <string>();

            foreach (var icall in icalls)
            {
                var module = ModuleMetadata.GetICallModule(icall);
                if (!string.IsNullOrEmpty(module))
                {
                    result.Add(module);
                }
            }
            return(result);
        }
예제 #3
0
        public static HashSet <string> GetModulesFromICalls(string icallsListFile)
        {
            string[]         array   = File.ReadAllLines(icallsListFile);
            HashSet <string> hashSet = new HashSet <string>();

            string[] array2 = array;
            for (int i = 0; i < array2.Length; i++)
            {
                string icall       = array2[i];
                string iCallModule = ModuleMetadata.GetICallModule(icall);
                if (!string.IsNullOrEmpty(iCallModule))
                {
                    hashSet.Add(iCallModule);
                }
            }
            return(hashSet);
        }