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
The similar logic to Distinct using GroupBy:
Distinct
GroupBy
var isUnique = theList.GroupBy(i => i).Count() == theList.Count;