Esempio n. 1
0
 public static bool IsLastFileWriteTimeChanged(string fileName, ref DateTime compareTimeUtc)
 {
     bool isChanged = false;
     IOInfo info = new IOInfo(fileName);
     if (info.Exists && info.LastWriteTimeUtc != compareTimeUtc)
     {
         isChanged = true;
         compareTimeUtc = info.LastWriteTimeUtc;
     }
     return isChanged;
 }
Esempio n. 2
0
        public static bool IsLastFileWriteTimeChanged(string fileName, ref DateTime compareTimeUtc)
        {
            bool   isChanged = false;
            IOInfo info      = new IOInfo(fileName);

            if (info.Exists && info.LastWriteTimeUtc != compareTimeUtc)
            {
                isChanged      = true;
                compareTimeUtc = info.LastWriteTimeUtc;
            }
            return(isChanged);
        }