Anders,
In addition to the other comments.
I have a Range(Of T), DateRange & TimeRange available at:
http://www.tsbradley.net/Cookbook/Ge...ericRange.aspx http://www.tsbradley.net/Cookbook/Pa...dateRange.aspx http://www.tsbradley.net/Cookbook/Pa...timeRange.aspx
One should be able to easily convert the above to C# if needed.
My DateRange will ignore the respective Time parts of the DateTime values,
while the TimeRange will ignore the respective Date parts, plus it handles
ranges spanning midnight.
--
Hope this helps
Jay [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley -
http://www.tsbradley.net
"Anders Borum" <an****@sphereworks.dk> wrote in message
news:ei**************@TK2MSFTNGP11.phx.gbl...
| Hello!
|
| As part of a refactoring iteration, I was looking at consolidating two
| properties (Start and EndDate) to a single structure that would allow a
| single access point for the "duration" (so to speak).
|
| I considered using the TimeSpan, but that structure doesn't provide the
| boundaries for the "duration", only the length of the "duration" itself.
|
| The obvious step next would be creating my own structure that provided
these
| boundaries - except that I have a feeling this is already present in the
| framework (or sounds like it should be). Am I looking for something that
| doesn't exist? :)
|
| Thanks in advance!
|
| --
| With regards
| Anders Borum / SphereWorks
| Microsoft Certified Professional (.NET MCP)
|
|