Get the name of the current method

camainc picture camainc · Jan 12, 2010 · Viewed 53k times · Source

This is kind of a silly question, but is it possible to get the name of the method that is currently being executed from within that method?

Public Sub SomeMethod()

   Dim methodName as String = System.Reflection.[function to get the current method name here?]

End Sub

Thanks