How do I search a string array for a match in C# like in my code
<p>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?</p>

<pre><code>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;
</code></pre>

<p>This should return 3??</p>
