Geeks With Blogs
Mike Nichols - SonOfNun Technology If I were the captain on a big steamboat...
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         }

Posted on Monday, July 24, 2006 8:50 AM General | Back to top


Comments on this post: Copy Source Code as HTML

No comments posted yet.
Your comment:
 (will show your gravatar)
 


Copyright © Mike Nichols | Powered by: GeeksWithBlogs.net | Join free