title: How to select name corresponding the id using LINQ
body: <p>I have a class points.cs which has members :</p>
  
  <pre><code>  public class Points
      {
          public int Id = 0;
          public string Name { get; set; }
      }
  
  
  I have a list of these points like this `List&lt;Points&gt; list= new List&lt;Points&gt;();`
  </code></pre>
  
  <p>Now this list object contains data:</p>
  
  <p>list:</p>
  
  <pre><code> Id    Name
    1    abc
    2    def
    3    ghi
    4    jkl
  </code></pre>
  
  <p>What i have to do is to get the Name corresponding to the id number providing in my code using LINQ query from list object.</p>
  
  <p>My try which os obviously wrong is:</p>
  
  <pre><code> string nameFetchedId=list.Select(Name).Where(obj=&gt;obj.Id=2) //result returned will be "def"
  </code></pre>
  
  <p>Please correct me, I am not good in LINQ ?</p>