I am trying to get a methods name and add it to a list. I had a look around and came across actions. So far I have the following:
Protected Function MethodToString(method As Action) As String
Return method.Method.Name
End Function
...
Me.Stages.Add(MethodToString(GetWeightFromSID()))
but it does not work when called as it says expression do not produce a value. I am pretty much just looking for the methods name. Any advice is much appreciated.
Action is a delegate, so you need to pass the address of the method, not call the method: