Is there some way to do the following in C#, but I was looking and .indexOf didnt stick out to me. Does it exist, or what other method should I be using?
string t = "joke";
string sentence = "there is no joke here";
string[] array = sentence.Split(" ".ToCharArray());
//here is the kicker
int count = array.indexOf(t);
return count;
This should return 3??