title: Filter list using Lambda Expression
body: <pre><code>// i have a class named "person" and have two member Name i.e string variable and age i.e int
  
  //created list to store the object of class person
  List&lt;person&gt; list = new List&lt;person&gt;();
  
  // added some object in list 
  
  //using lambda exp[ression to filter the object
  var newlist = list.Where(x =&gt; x.Age&gt;60);
  
  
              //printing 
              foreach ( var li in newlist)
              {
                  Console.WriteLine(li.Name);
              }
  
  //
  
  </code></pre>
  
  <p>i'm new to Lambda expression and trying to find out a way to return just property Name in newlist instead of the whole object.
  for example:: </p>
  
  <p>var newlist = list.Where(//lambda expression); this should return string,let say if we use object x then x.name if x.age>60.</p>
  
  <p>i tried some hit and trial but didn't work. </p>