📅  最后修改于: 2022-03-11 14:48:41.849000             🧑  作者: Mango
//using System.Runtime.CompilerServices;
public void SendError(string Message, [CallerMemberName] string callerName = "")
{
Console.WriteLine(callerName + "called me.");
}
// You can also get the [CallerFilePath] and [CallerLineNumber].