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
The above code works fine!!!
I want to use lambda expression for "For Each" loop.
Could anyone guide me with the lambda code, thanks!!!