How to

get current method name

Published: 27. October 2011 | Updated: 27. October 2011
License: Microsoft Public License (MS-PL)
Categories: Debug, Framework » Reflection
Tags: C# Debug Reflection
Was this snippet helpful for you? YESYES / NONO

Import namespace

using System.Reflection;

Code

string name = MethodBase.GetCurrentMethod().Name;
Send us feedback about this snippet »



Related Snippets: