title: C#: DateTime - Going through a period of days?
body: <p>I have a period of days and I want to go through it and execute the same code on each date. </p>
  
  <p><strong>begin</strong> and <strong>end</strong> are <strong>DateTime</strong> format with difference of a month at least</p>
  
  <pre><code>while ( !(begin.Equals(end)) )
          {
             ...some code here...              
             begin = begin.AddDays(1);
          }
  </code></pre>
  
  <ol>
  <li><p>I'm not sure if it automatically upgrades the Month value when the Day value reaches the end of an exact month(in exact year) - for example February doesn't have always the same amount of days so...</p></li>
  <li><p>Is there a better/shorter/nicer way of increasing the date by one day?
  For example something like this: <code>begin.Day++</code>; or this: <code>begin++;</code> ?</p></li>
  </ol>
  
  <p>I'm not used to C# yet so sorry for asking this lame question and thank you in advance for any answer.</p>