Get current function name

/ Published in: C#
Save to your folder(s)

This is useful to get the name of the current function for trace purposes or to name a thread.

Copy this code and paste it in your HTML
  1. System.Reflection.MethodBase.GetCurrentMethod().Name;

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.