static FileInfoHelper() { #if NETCF Helper = new GenericFileInfoHelper(); #else if (PlatformDetector.IsCurrentOSCompatibleWith(RuntimeOS.Windows) || PlatformDetector.IsCurrentOSCompatibleWith(RuntimeOS.WindowsNT)) { Helper = new Win32FileInfoHelper(); } else { Helper = new GenericFileInfoHelper(); } #endif }
public static DateTime LookupValidFileCreationTimeUtc(this FileInfo fileInfo) { return(FileInfoHelper.LookupValidFileCreationTimeUtc(fileInfo, (f) => f.GetCreationTimeUtc(), (f) => f.GetLastWriteTimeUtc()).Value); }