public RecurrenceRule() { this.Freq = Frequency.Never; this.Until = DateTime.MinValue; this.Count = -1; this.Interval = 1; this.WKST = WeekDay.Parse("mo"); this.ExDates = new List <ExDate>(); }
public object Clone() { var o = (RecurrenceRule)this.MemberwiseClone(); o.ExDates = new List <ExDate>(); this.ExDates.ForEach(d => o.ExDates.Add(d)); if (ByDay != null) { var days = new List <WeekDay>(); foreach (var d in ByDay) { days.Add(WeekDay.Parse(d.ToString())); } o.ByDay = days.ToArray(); } o.WKST = WeekDay.Parse(this.WKST.ToString()); return(o); }