<
br
> RecurrenceTask[] RecurrenceTask_Array = new RecurrenceTask[3];
for (int i = 0; i < RecurrenceTask_Array.Length; i++)
{
RecurrenceTask_Array[i] = new RecurrenceTask(today.AddYears(11), today.AddHours(1), "Recurrence Series" + i.ToString())
{
Recurrences = { recurrenceTask1, recurrenceTask2, recurrenceTask3 }
};
}
for (int i = 0; i < RecurrenceTask_Array.Length; i++)
{
gts[0].Children.Add(RecurrenceTask_Array[i]);
gts[1].Children.Add(RecurrenceTask_Array[i]);
}
for (int i = 0; i < gts.Length; i++)
{
this.Tasks.Add(gts[i]);
}
this source occur argumentException
can i use RecurrenceTask in array?