Add timespan to another timespan does not work [duplicate]
问题 This question already has answers here : Why isn't my TimeSpan.Add() working? (3 answers) Closed 4 years ago . I have two timespans and I want to add the second timespan to the first timespan: TimeSpan weeklyWorkTimeHours = new TimeSpan(0,0,0); TimeSpan? completeWorkTimeForCurrentDay = CalculateCompleteWorktime(currentWorkTimeItem).Value; /* I debugged through the code. This method returns a correct timespan with a correct value */ weeklyWorkTimeHours.Add(completeWorkTimeForCurrentDay.Value);