r/badcode • • Jan 07 '23

c# what the hell is this

Post image
539 Upvotes

65 comments sorted by

View all comments

Show parent comment

1

u/Ewkcs Jan 07 '23

Save just the start time and the end time as a datetime, then end - start = worktime as a timespan

3

u/[deleted] Jan 07 '23

Ok that makes sense in this example, but I mean copying fields from objects in general