Описание тега callermembername
`CallerMemberName` provides useful information about the caller within the called method.
Caller information attributes like CallerMemberName
(from the System.Runtime.CompilerServices
namespace) provide information about the caller within the called method, e.g.:
public void Log(string message, [CallerMemberName] string memberName = "")
{
Trace.WriteLine("Log has been called by {0}", memberName);
}
Other caller information attributes are CallerFilePath
and CallerLineNumber
. More information about that topic can be found at http://msdn.microsoft.com/en-us/library/hh534540.aspx