title: Find string position in list C#
body: <p>I have a list <code>List&lt;string&gt; strList</code> where strings are added to the list throughout the program.</p>
  
  <p>I want to be able to find a certain position or index of the list containing a certain string.</p>
  
  <p>I've managed to check if a string that contains a certain text exists using this code:</p>
  
  <pre><code>if (strList.Exists(str =&gt; str.Contains("Chicken")))
              {
                  Console.WriteLine("Found it");
              }
  </code></pre>
  
  <p>But I would like to find which position in the list this string has.</p>