Month: March 2012

  • WPF notify helper – C# 5.0

    So after looking at the documentation on what’s new in C# 5.0, I read about the feature that you can get a function’s caller information that looks like the following. public void DoProcessing() { TraceMessage(“Something happened.”); } public void TraceMessage(string message, [CallerMemberName] string memberName = “”, [CallerFilePath] string sourceFilePath = “”, [CallerLineNumber] int sourceLineNumber =…