I use form collection to retrieve values from dynamically cloned form elements/values in controller
string[] vi = collection["VoteInfoCatId"].Split(char.Parse(","));
vi can have values of 1,2 or 3 I want to create a condition where I could check to make sure on all occasions vi should always have these 3 different values without any duplicates I was doing it like
Where vi[0]!=vi[1] && vi[0]!=vi[2] && vi[1]!=vi[2]
Is there a better way to do this?