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); } } }
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); } }