示例#1
0
 /// <summary>Determines whether the specified object is equal to the current object.</summary>
 /// <returns>true if the specified object  is equal to the current object; otherwise, false.</returns>
 /// <param name="obj">The object to compare with the current object. </param>
 public override bool Equals(object obj)
 {
     if (obj == this)
     {
         return(true);
     }
     else if (!(obj is TimeRangeItem))
     {
         return(false);
     }
     else
     {
         var other = (TimeRangeItem)obj;
         return(Caption.Equals(other.Caption) && TimedCountDuration.Equals(other.TimedCountDuration) &&
                EventTimeRange.Equals(other.EventTimeRange) && GroupTimeRange.Equals(other.GroupTimeRange));
     }
 }