コード例 #1
0
        private static List <string> FindFilePaths(IEnumerable <string> directories, string assemblyName)
        {
#if !SILVERLIGHT
            return(directories.Select(d => Path.Combine(d, assemblyName)).Where(f => IOHelpers.FileExists(f)).ToList());
#else
            return(new List <string>());
#endif
        }
コード例 #2
0
 private static List <string> FindFilePaths(IEnumerable <string> directories, string assemblyName)
 {
     return(directories.Select(d => Path.Combine(d, assemblyName)).Where(f => IOHelpers.FileExists(f)).ToList());
 }