/// <summary> /// Generate the task recurrence used by TaskType. /// </summary> /// <param name="generateRecurPatternMethod">The method to generate recurrence pattern type.</param> /// <param name="generateRecurRangeMethod">The method to generate recurrence range type.</param> /// <returns>The generated task recurrence.</returns> public static TaskRecurrenceType GenerateTaskRecurrence(GenerateRecurPattern generateRecurPatternMethod, GenerateRecurRange generateRecurRangeMethod) { return(new TaskRecurrenceType { Item = generateRecurPatternMethod(), Item1 = generateRecurRangeMethod() }); }
/// <summary> /// Generate the task recurrence used by TaskType. /// </summary> /// <param name="generateRecurPatternMethod">The method to generate recurrence pattern type.</param> /// <param name="generateRecurRangeMethod">The method to generate recurrence range type.</param> /// <returns>The generated task recurrence.</returns> public static TaskRecurrenceType GenerateTaskRecurrence(GenerateRecurPattern generateRecurPatternMethod, GenerateRecurRange generateRecurRangeMethod) { return new TaskRecurrenceType { Item = generateRecurPatternMethod(), Item1 = generateRecurRangeMethod() }; }