I have a list like:
List<int> baslikIndexes = new List<int> { };
and I added the elements manually. I want to know whether for example if element “23” is in it or not. I am trying to use “Exists” method but I haven’t figured out how to use it. I tried this and it gives error:
baslikIndexes.Exists(Predicate<int>(23)); // I try to check whether 23 is in the list or not
Thanks for help..
1 Answer