Full Site Version
using System;
using System.Linq;
using System.Collections.Generic;
public class Program
{
public static void Main()
// Student collection
IList<string> strList1 = new List<string>() {
"One",
"Two",
"Three",
"Four"
};
IList<string> strList2 = new List<string>() {
"Five",
"Six"
var innerJoinResult = strList1.Join(// outer sequence
strList2, // inner sequence
str1 => str1, // outerKeySelector
str2 => str2, // innerKeySelector
(str1, str2) => str1);
foreach (var str in innerJoinResult)
Console.WriteLine("{0} ", str);
}