CodeKicks.com
Focus on Microsoft Technologies - Tutorials, Articles, Code Samples.

Monday, September 11, 2006

Display the name of the currently executing method in .NET

Description: Use Reflection to display the name of the currently-executing method. Useful for debugging.

Debug.WriteLine(Me.GetType.ToString 
                     & ":" 
                     & System.Reflection.MethodBase.GetCurrentMethod().Name)

Post a Comment