// Token: 0x06000769 RID: 1897 RVA: 0x000292F8 File Offset: 0x000274F8 private void WritePropertyValue(DateTime value, CalendarValueType valueType, CalendarValueSeparators separator) { string value2; if (CalendarValueType.DateTime == valueType || CalendarValueType.Text == valueType) { value2 = CalendarCommon.FormatDateTime(value); } else { if (CalendarValueType.Date != valueType) { throw new ArgumentOutOfRangeException("valueType"); } value2 = CalendarCommon.FormatDate(value); } this.WritePropertyValue(value2, separator); }
// Token: 0x060008A2 RID: 2210 RVA: 0x0002FA0C File Offset: 0x0002DC0C public override string ToString() { StringBuilder stringBuilder = new StringBuilder(); if ((this.props & RecurrenceProperties.Frequency) != RecurrenceProperties.None) { stringBuilder.Append("FREQ"); stringBuilder.Append('='); stringBuilder.Append(Recurrence.GetFrequencyString(this.freq)); } if ((this.props & RecurrenceProperties.UntilDate) != RecurrenceProperties.None) { stringBuilder.Append(";UNTIL"); stringBuilder.Append('='); stringBuilder.Append(CalendarCommon.FormatDate(this.untilDate)); } if ((this.props & RecurrenceProperties.UntilDateTime) != RecurrenceProperties.None) { stringBuilder.Append(";UNTIL"); stringBuilder.Append('='); stringBuilder.Append(CalendarCommon.FormatDateTime(this.untilDateTime)); } if ((this.props & RecurrenceProperties.Count) != RecurrenceProperties.None) { stringBuilder.Append(";COUNT"); stringBuilder.Append('='); stringBuilder.Append(this.count); } if ((this.props & RecurrenceProperties.Interval) != RecurrenceProperties.None) { stringBuilder.Append(";INTERVAL"); stringBuilder.Append('='); stringBuilder.Append(this.interval); } if ((this.props & RecurrenceProperties.BySecond) != RecurrenceProperties.None) { stringBuilder.Append(";BYSECOND"); stringBuilder.Append('='); this.OutputList(this.bySecond, stringBuilder); } if ((this.props & RecurrenceProperties.ByMinute) != RecurrenceProperties.None) { stringBuilder.Append(";BYMINUTE"); stringBuilder.Append('='); this.OutputList(this.byMinute, stringBuilder); } if ((this.props & RecurrenceProperties.ByHour) != RecurrenceProperties.None) { stringBuilder.Append(";BYHOUR"); stringBuilder.Append('='); this.OutputList(this.byHour, stringBuilder); } if ((this.props & RecurrenceProperties.ByDay) != RecurrenceProperties.None) { stringBuilder.Append(";BYDAY"); stringBuilder.Append('='); int num = this.byDay.Length; if (num > 0) { stringBuilder.Append(this.byDay[0]); } for (int i = 1; i < num; i++) { stringBuilder.Append(','); stringBuilder.Append(this.byDay[i].ToString()); } } if ((this.props & RecurrenceProperties.ByMonthDay) != RecurrenceProperties.None) { stringBuilder.Append(";BYMONTHDAY"); stringBuilder.Append('='); this.OutputList(this.byMonthDay, stringBuilder); } if ((this.props & RecurrenceProperties.ByYearDay) != RecurrenceProperties.None) { stringBuilder.Append(";BYYEARDAY"); stringBuilder.Append('='); this.OutputList(this.byYearDay, stringBuilder); } if ((this.props & RecurrenceProperties.ByWeek) != RecurrenceProperties.None) { stringBuilder.Append(";BYWEEKNO"); stringBuilder.Append('='); this.OutputList(this.byWeekNumber, stringBuilder); } if ((this.props & RecurrenceProperties.ByMonth) != RecurrenceProperties.None) { stringBuilder.Append(";BYMONTH"); stringBuilder.Append('='); this.OutputList(this.byMonth, stringBuilder); } if ((this.props & RecurrenceProperties.BySetPosition) != RecurrenceProperties.None) { stringBuilder.Append(";BYSETPOS"); stringBuilder.Append('='); this.OutputList(this.bySetPos, stringBuilder); } if ((this.props & RecurrenceProperties.WeekStart) != RecurrenceProperties.None) { stringBuilder.Append(";WKST"); stringBuilder.Append('='); stringBuilder.Append(Recurrence.GetDayOfWeekString(this.workWeekStart)); } return(stringBuilder.ToString()); }