Exemplo 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;
 }
Exemplo 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);
        }