An
IComparer for sorting files by ascending date.
System Object CleanCode.IO DateComparerAscendingNamespace: CleanCode.IOAssembly: CleanCode (in CleanCode.dll) Version: 1.2.3.0 (1.2.03)
public class DateComparerAscending : IComparer
public class DateComparerAscending : IComparer
Public Class DateComparerAscending _
Implements IComparer
Public Class DateComparerAscending _
Implements IComparer
public ref class DateComparerAscending : IComparer
public ref class DateComparerAscending : 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
earliest 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.07.