might be helpful,
int hours = (dateTimePicker1.Value - dateTimePicker2.Value).TotalHours
There is implementation difference between TotalHours and Hours,
TotalHours implementation is something like below,
return (this._ticks * 2.7777777777777777E-11);
Hours implementation is something like below,
return (int) ((this._ticks / 0x861c46800L) % 0x18L);
Future Ref:
Timespan.TotalHours[
^]
Timespan.Hours[
^]
and
.Net Reflector/[
^] is the best help.
:)