Hello Friends, :wave:
How could I retrieve the name of the property that I'm calling from a Func?
Here is my example class:
and here is my Func:
How to get the "Age" property from myFunc? is it possible?
Thank you!
How could I retrieve the name of the property that I'm calling from a Func?
Here is my example class:
Code:
Public Class MyObject
Public Property Name As String
Public Property Age As Integer
Public Property Score As Integer
End Class
Code:
Dim myFunc As Func(Of MyObject, Integer) = Function(x) x.Age
Thank you!