13.07.2015 Views

C# in Depth

C# in Depth

C# in Depth

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

174 CHAPTER 6 Implement<strong>in</strong>g iterators the easy wayonly made a few for loops neater <strong>in</strong> this case. In <strong>C#</strong> 2, however, it was easy. With<strong>in</strong> theclass represent<strong>in</strong>g the timetable, I simply added a property:public IEnumerable DateRange{get{for (DateTime day = StartDate;day

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!