...分のdatetimeに基づいて2つのファイルを比較する?
public class FileCompareLastwritetime : System.Collections.Generic.IEqualityComparer<System.IO.FileInfo>
{
public FileCompareLastwritetime() { }
public bool Equals(System.IO.FileInfo f1, System.IO.FileInfo f2)
{
return f1.LastWriteTime == f2.LastWriteTime;
}
public int GetHashCode(System.IO.FileInfo fi)
{
string s = String.Format("{0}", fi.LastWriteTime);
return s.GetHashCode();
}
}
@Marc Gravell:ここで私はのlastwritetimeを比較しています2つのファイル...それは秒まで比較します..私は分まで比較する必要があります.. – bala3569