In the example below, why does the Milliseconds
property return 0
but the TotalMilliseconds
property return 5000
?
// 5 seconds
TimeSpan intervalTimespan = new TimeSpan(0, 0, 5);
// returns 0
intervalTimespan.Milliseconds;
// returns 5000.0
intervalTimespan.TotalMilliseconds
TimeSpan
come in property pairs like this, not just milliseconds.Mintes
/TotalMinutes
,Hours
/TotalHours
, etc... – Gwinn