-
June 4th, 2009, 04:32 PM
#1
Want the Current Module Name
I want the current module name for Verbose Logging. Tried using DeclaringType.Name and it returned the Class name, not the Subroutine name. Ideally, I would like the class/module and subroutine/function name.
Dim test As String = System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.Name
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|