Find gap between multiple dates in C#
问题 I'm currently programming an appointment finder that automatically syncs with MS Exchange Server. The program should lookup multiple users' calendar when they are available. I have coded some demo data with multiple users and their appointments. The appointments consist of two DateTimes. So my question is: How can I find a gap between multiple users appointments, where everyone is available. This is the demo data: var appointment1ForPerson1 = new Appointment(1, new List<Appointment.Time>() {