exemplo-except

CSharp · Console

/Program.cs

using System;
using System.Linq;
using static System.Console;

					
public class Program
{
	public static void Main()
	{
		var lista = new [] {"nome", "teste", "texto", "quak", "outro", "another"};
		var lista2 = new [] {"nome", "teste", "texto", "quak", "outro", "another2"};
		
		var excecoes = lista2.Except(lista).ToList();
		
		excecoes.ForEach(x => WriteLine(x));
	}
}
;