Beispiel #1
0
 public static DateTime LookupValidFileCreationTimeUtc(this FileInfo fileInfo, DateTime?fallbackTime)
 {
     if (fallbackTime > DateTime.MinValue)
     {
         return(FileInfoHelper.LookupValidFileCreationTimeUtc(fileInfo, (f) => f.GetCreationTimeUtc(), (f) => fallbackTime.Value, (f) => f.GetLastWriteTimeUtc()).Value);
     }
     else
     {
         return(LookupValidFileCreationTimeUtc(fileInfo));
     }
 }
Beispiel #2
0
 public static DateTime LookupValidFileCreationTimeUtc(this FileInfo fileInfo)
 {
     return(FileInfoHelper.LookupValidFileCreationTimeUtc(fileInfo, (f) => f.GetCreationTimeUtc(), (f) => f.GetLastWriteTimeUtc()).Value);
 }