0
I have that expression and it doesn’t work:
var busca = listaCommiter.Where(l => l.Except(listaFarm.ToString()));
I’ve already removed Tostring() and still nothing.
listaCommiter
and listaFarm
are two string lists. I tried with Contains
and even the files existing on both lists he says are different. A list I fill with Getfilename and the other I Split a txt file and assemble the list. I think the txt list, must have strange characters and so the difference, I removed the \n
and also the \r
, but there may be something else. Well, as I compare the two lists with lambda?
What is your intention? Create a new list with all the data of the second that does not exist in the first? (This was an assumption)
– Jéf Bueno
@jbueno, exactly that. I need to create a list and then delete from the file the names that are in the Commiter list and are not in the Farm list.
– pnet
I did so and it worked:
var busca = listaCommiter.Except(listaFarm);
. I just couldn’t do it with lambda.– pnet