I'm using EWSoftware.PDI library to build a recurring dates list.
var r = new Recurrence();
r.RecurWeekly(2, DaysOfWeek.Monday | DaysOfWeek.Tuesday);
DaysOfWeek is an enum type.
I'm looking to create the second parameter of RecurWeekly dynamically. It expects the parameter to be of type (enum) EWSoftware.PDI.DaysOfWeek.
Is it possible to create an array that can be passed through as the second parameter, or an array that is exploded in to the correct parameters in the separated list?
Background:
I'm building a calendar with recurring events. A list of selected days is passed through to a method containing the code above. Depending on the days selected, it will build a variable that I can pass through to the RecurWeekly function.