I have a list
List<byte> unaLista = new List<byte> { 1,4,3,6,1 };
How can I test whether this unqiue or not?
I have a list
List<byte> unaLista = new List<byte> { 1,4,3,6,1 };
How can I test whether this unqiue or not?
Use DISTINCT ()
bool estaUnique = unaLista.Distinct().Count() == unaLista.Count();