public override string ToString() { var sb = new StringBuilder().AppendFormat(SCHEDULE_FORMAT, ProviderName) .AppendLine(); return(ScheduleIntervalDefinitions.Aggregate(sb, (scheduleString, definition) => scheduleString.AppendLine(definition.ToString()), builder => builder.ToString())); }
public override int GetHashCode() { var hash = ProviderName.GetHashCode(); return(ScheduleIntervalDefinitions.Aggregate(hash, (currentHash, definition) => (hash * 397) ^ definition.GetHashCode())); }