Exemple #1
0
 internal static IDictionary <string, FileInfoBase> GetFiles(DirectoryInfoBase info)
 {
     if (info == null)
     {
         return(null);
     }
     return(info.GetFilesWithRetry().ToDictionary(f => f.Name, StringComparer.OrdinalIgnoreCase));
 }
 public static IDictionary <string, FileInfoBase> GetFiles(DirectoryInfoBase info)
 {
     return(info?.GetFilesWithRetry().ToDictionary(f => f.Name, StringComparer.OrdinalIgnoreCase));
 }