/// <summary>Serves as the default hash function. </summary> /// <returns>A hash code for the current object.</returns> public override int GetHashCode() { int hashCode = Caption.GetHashCode(); hashCode *= 31; hashCode += TimedCountDuration.GetHashCode(); hashCode *= 31; hashCode += EventTimeRange.GetHashCode(); hashCode *= 31; hashCode += GroupTimeRange.GetHashCode(); return(hashCode); }