DEV Community

Discussion on: Who am I? Me, the name of the currently executing method in C#

Collapse
 
bugmagnet profile image
Bruce Axtens

Needs using System.Runtime.CompilerServices; or public static string? Me([System.Runtime.CompilerServices.CallerMemberName] string? cmn = null) => cmn;