c# - How can I find the method that called the current method? - Stack Overflow

PHOTO EMBED

Mon May 02 2022 14:37:27 GMT+0000 (UTC)

Saved by @javicinhio #cs

(new System.Diagnostics.StackTrace()).GetFrame(1).GetMethod().Name
content_copyCOPY

https://stackoverflow.com/questions/171970/how-can-i-find-the-method-that-called-the-current-method