.NET Fiddle

CSharp · Console

/Program.cs

using System;
using System.Linq;
					
public class Program
{
	public static void Main()
	{
		int[] first = { 1, 2, 3, 4 };
		int[] second = { 0, 2, 3, 5 };
		int[] third = { 1, 1, 1, 2, 3, 4 };
		var inThirdButNotInSecond = third.Except(second);
		// Output the example
		foreach(var number in inThirdButNotInSecond)
		{
			Console.WriteLine(number);
		}
	}
}
;