Tag Archives: intersect array c#

Intersection of two string arrays in c#

By | November 27, 2019

lets say we have two arrays and we want to find common element which are present in both the arrays, then use intersect method. It is an extension method present in system.linq namespace. string[] days1 = {“Mon”,”Tue”, “thr”, “Fri”, “Sun” }; string[] days2 = {“Mon”,”Wed”, “Fri”, “Sat”, “Sun”}; Here we want to find common days… Read More »