check if two timespans intersect c#

C#
bool overlap = a.start < b.end && b.start < a.end;
Source

Also in C#: