title: get index from multiple list in C#
body: <p>i have this list in my program</p>
  <pre><code>private static List&lt;User&gt; us = new List&lt;User&gt;();
  public string fNames, lNames, pWs, uNames;
  public int uIds;
  </code></pre>
  <p>this is how i add the data into the list</p>
  <pre><code> us.Add(new User { uIds = uId, fNames = fName, lNames = lName, pWs = password, uNames = uName+uId });
  </code></pre>
  <p>i need to get index of <strong>us.uNames</strong> in <strong>us</strong> list when input is same with <strong>uName</strong></p>
  <pre><code> Console.Write(&quot;Username : &quot;);
   string uName = Console.ReadLine();
  
   int j = us[uNames].IndexOf(uName);
  </code></pre>