You verify that all values ββare not equal to the first. This can happen if the values, for example, [1, 2, 3, 3
], none are equal to the first, but to the most, but 3 == 3
.
GroupBy
, , . , ( , , 100000 , ):
ReviewsController._reviews.GroupBy(x => x.Id).Count() == ReviewsController._reviews.Count;
, , API, . , , . , -, .