I've been working a lot w/ calendar controls and date collections...
Anyone know of a better way than this to find the minimum date in a
SelectedDatesCollection (or did I overlook an intrinsic property)? I'm
wondering if the collection some kind of stack or queue or if I can rely
on simply grabbing the first date from the collection and expect that it
will always be the lowest date:
SelectedDatesCollection myDates = // some dates... ;
IEnumerator myEnum = myDates.GetEnumerator();
myEnum.MoveNext();
DateTime minDate=(DateTime)myEnum.Current;
while (myEnum.MoveNext())
{
if((DateTime)myEnum.Current<
minDate){minDate=(DateTime)myEnum.Current;};
}