title: How can I use DayOfWeek enum to flag process cycles?
body: <p>In app.config, I supply a <em>cycle</em> string value: "Monday", "Tuesday", ..., "Daily". From that value I wanted to assign a <code>&lt;Flags()&gt;</code> enum. Simply using <code>DayOfWeek</code> does not give me the ability to flag a process as a daily routine. Is there an available .Net class that does provide the day of week as a flag?  </p>
  
  <p>In the meantime, I devised the following:</p>
  
  <pre><code>&lt;Flags()&gt; _
  Public Enum enumExportCycle As Integer
      Monday = DayOfWeek.Monday
      Tuesday = DayOfWeek.Tuesday
      Wednesday = DayOfWeek.Wednesday + 1
      Thursday = DayOfWeek.Thursday + 4
      Friday = DayOfWeek.Friday + 11
      Saturday = DayOfWeek.Saturday + 26
      Sunday = DayOfWeek.Sunday + 64
      Daily = Monday Or Tuesday Or Wednesday Or Thursday Or Friday Or Saturday Or Sunday
  End Enum
  </code></pre>
  
  <p>It feels somewhat hackish and I am looking for a better way.</p>