Blog Stats
  • Posts - 62
  • Articles - 1
  • Comments - 56
  • Trackbacks - 40

 

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         }

  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Feedback

No comments posted yet.


Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification:
 
 

 

 

Copyright © Mike Nichols