public override bool Equals( object obj )
{
if ( obj == this )
{
return true;
}
if ( obj == null || GetType() != obj.GetType() )
{
return false;
}
DateDiff comp = (DateDiff)obj;
return calendar == comp.calendar &&
yearBaseMonth == comp.yearBaseMonth &&
firstDayOfWeek == comp.firstDayOfWeek &&
date1 == comp.date1 &&
date2 == comp.date2 &&
difference == comp.difference;
}