I just need to get the index of a certain string in my list. I am currently using ListName.GetIndex(String) but it tells me that best overload for the method is not compatible with the argument(string). I cannot figure out why this is happening and would really appreciate some help.
Cheers
Show your actual code that isn't working: What kind of list do you actually talk about? The generic List inside the
– Bunny83System.Collections.Genericnamespace doesn't have a method calledGetIndex. It only has theIndexOfmethod.