HashSet<DateTime> common = new HashSet<DateTime>( list1 );
common.IntersectWith( list2 );
common.IntersectWith( list3 );
A class is HashSetmore efficient for such tasks than use Enumerable.Intersect.
Update: make sure all your values ββmatch DateTimeKind.
Sonts source
share