title: For each lambda expression in vb.net
body: <pre><code>Partial Public Class class2
          Public Property id As Long
          Public Property Name As String
          Public Property Type As String
          Public Property Value As String
          Public Property Date As Nullable(Of Date) 
  End Class
  
  Private Class Class1            
      Public Property property1 As class2
  End Class
  
  
  Dim Temp1 As New List(Of Class1)
  Dim Temp2 As New List(Of Class2)
  
  For Each item In Temp1
      Temp2.Add(item.property1)
  Next
  </code></pre>
  
  <p>The above code works fine!!!</p>
  
  <p>I want to use lambda expression for "For Each" loop.</p>
  
  <p>Could anyone guide me with the lambda code, thanks!!!</p>