An
IComparer for sorting files by descending date.
System Object CleanCode.IO DateComparerDescendingNamespace: CleanCode.IOAssembly: CleanCode (in CleanCode.dll) Version: 1.2.3.0 (1.2.03)
public class DateComparerDescending : IComparer
public class DateComparerDescending : IComparer
Public Class DateComparerDescending _
Implements IComparer
Public Class DateComparerDescending _
Implements IComparer
public ref class DateComparerDescending : IComparer
public ref class DateComparerDescending : IComparer
This is an implementation of an
IComparer
(to be passed to
Sort(Array) for example).
It compares
FileSystemInfo objects on
the modification date property (
LastWriteTime),
sorting by
latest date first.
Adapted from
NET Sorting files by Date
by John Batdorf
(original link
http://www.johnbatdorf.net/blog/default,date,2006-01-30.aspx
no longer exists).
Since CleanCode 0.9.08.