-1
var lista3 = lista1.Union(lista2).ToList();
-1
1
var lista3 = lista1.Union(lista2).ToList();
Friend, this command just joins the lists, does not check repeated items. I appreciate the intention.
It is not what is written in the documentation. If you had put your code I would have used as an example and shown that you do what you want.
@bigown I think this question should be closed
@LINQ has a face.
Browser other questions tagged c# .net list
You are not signed in. Login or sign up in order to post.
Your question doesn’t seem to make sense to me. Mainly because the second image is equal to the first, the difference is that the items are shuffled.
– Jéf Bueno
You need to explain right what you want to do, what are the lists you have? And what is the expected result?
– Jéf Bueno
Exactly this "join the two lists randomly without repeating letters and numbers in the same letter", the letters are random and there is no repetition of numbers in letters, example: A = 999 and A = 999
– Bruno
But you don’t "joined" absolutely nothing. Please answer what I asked: what are the lists you have? And what is the expected result?
– Jéf Bueno