check if two timespans intersect csharp

Code Example - check if two timespans intersect csharp

                
                        bool overlap = a.start < b.end && b.start < a.end;