if(sinv_list[i] in sinv_selected)
Problem description:
I have 2 lists. One is called sinv_list and the other sinv_selected. Now I know that the exact same object exists in both lists. I am iterating through sinv_list and when I get to the object that I know is in both, the if statement above still evaluates to false. Is there any way around this? or am I maybe doing something wrong? I can post more code if it will help.
if(sinv_selected.Find(sinv_list[i])==1)
Try that, it is more exact, and I've noticed in only seems to look to see if something of that type is in the list.