Blog Stats
  • Posts - 62
  • Articles - 1
  • Comments - 35
  • Trackbacks - 76

 

Copy Source Code as HTML

Trying out this new tool...I always wondered how folks copy their code so pretty in their blogs...:

   51         private IEnumerable ParsePeriod()

   52         {

   53             int startIndex = IsWeekOne ? 0 : 7;

   54             PayrollPeriodDTO period = HrService.GetPayrollPeriod(Timesheet.PeriodId);

   55             for (int i = 0; i < 7; i++)

   56             {

   57                 double factor = Convert.ToDouble(i + startIndex);

   58                 yield return period.StartDateTime.AddDays(factor);

   59             }

   60         }


Feedback

No comments posted yet.


Post a comment





 

Please add 4 and 7 and type the answer here:

 

 

Copyright © Mike Nichols