I have a small list of bytes and I want to test that they\'re all different values. For instance, I have this:
List theList = new List
One can also do: Use Hashset
var uniqueIds = new HashSet(originalList.Select(item => item.Id)); if (uniqueIds.Count != originalList.Count) { }