Example #1
0
        private static void gatherAssemblyInfo(string aPath, List <CAssemblyInfo> aList)
        {
            foreach (string iDir in Directory.GetDirectories(aPath))
            {
                gatherAssemblyInfo(iDir, aList);
            }

            foreach (string iFile in Directory.GetFiles(aPath, "*.ini"))
            {
                bool          lOk      = true;
                CAssemblyInfo lAsmInfo = null;

                try
                {
                    lAsmInfo = new CAssemblyInfo(iFile);
                }
                catch
                {
                    lOk = false;
                }

                if (lOk)
                {
                    aList.Add(lAsmInfo);
                }
            }
        }
Example #2
0
        private static void gatherAssemblyInfo(string aPath, List<CAssemblyInfo> aList)
        {
            foreach (string iDir in Directory.GetDirectories(aPath))
            {
                gatherAssemblyInfo(iDir, aList);
            }

            foreach (string iFile in Directory.GetFiles(aPath, "*.ini"))
            {
                bool lOk = true;
                CAssemblyInfo lAsmInfo = null;

                try
                {
                    lAsmInfo = new CAssemblyInfo(iFile);

                }
                catch
                {
                    lOk = false;
                }

                if (lOk)
                    aList.Add(lAsmInfo);
            }
        }