Rob
Rob

Reputation: 11

Looking for method name by address in vb.net

This is not really a question because I found out how to do this. Start with a delegate.

Public Delegate Sub PageFunction()

Then, define a function, for example:

Sub Action()
End Sub

Then you can get the function name from its address, like:

    Dim x As PageFunction = AddressOf Action

    Response.Write( x.Method.Name )

Upvotes: 1

Views: 134

Answers (0)

Related Questions