C# find first match of string in string array
<p>I have to search for the first match of any string in an string array in a textbox starting from a certain position. Like if I have this string array:  </p>

<pre><code>string[] s = { "RTS", "RTL" };
</code></pre>

<p>And this code:</p>

<pre><code>LDA #$43
STA $1000,x
CMP $00
BEQ .main
.return
RTS
.main
add $01
RTL
</code></pre>

<p>It should return RTS since that's the first match (not the RTL). How can I do this? Additionally, would there be a better way of doing this rather than using an array?</p>

<p>Edited since I gave a bad example of what I was trying to do.</p>
