C# version of __FUNCTION__ macro

后端 未结 6 1775
有刺的猬
有刺的猬 2021-02-19 01:18

Does anyone has a good solution for a C# version of the C++ __FUNCTION__ macro? The compiler does not seem to like it.

6条回答
  •  伪装坚强ぢ
    2021-02-19 01:58

    This is added in .NET 4.5.

    See @roken's answer here:

    Do __LINE__ __FILE__ equivalents exist in C#?

提交回复
热议问题