SyntaxFix
Write A Post
Hire A Developer
Questions
I think you're confused because you haven't declared a TimeSpan you've declared a TimeSpan? which is a nullable TimeSpan. Either remove the question mark if you don't need it to be nullable or use variable.Value.TotalHours.
TimeSpan
TimeSpan?
variable.Value.TotalHours