Click or drag to resize

Read Method Name

Example uses in test unit declaration of test method name

Example

Read actual method name

Using System.Reflection

C#
string lMethodName = System.Reflection.MethodBase.GetCurrentMethod().Name.ToString();