In this post I will show a method using which we can create datetime ranges. This method is not specific to the datetime, instead it can be used with any type including int, long etc. There is a new method in .net framework 3.5 using which we can easyly create integer ranges. For example.
foreach(int i in Enumerable.Range(1,10))Console.Write(i);
However, in this post I will show how we can create integer ranges and datetime ranges with custom intervals etc.
More...