using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XmlDucumentAnalysis
{
    public class FIleLastTimeComparer : IComparer<FileInfo>
    {
        public int Compare(FileInfo x, FileInfo y)
        {
            return y.LastWriteTime.CompareTo(x.LastWriteTime);//递减
                                                              //return x.LastWriteTime.CompareTo(y.LastWriteTime);//递增
        }
    }
}
