I am trying to use CallerMemberName attribute in .NET 4.0 via BCL portability pack. It is always returning an empty string instead of the member name. What am I doi
CallerMemberName
Targeting 4.0 works just fine if you add:
namespace System.Runtime.CompilerServices { sealed class CallerMemberNameAttribute : Attribute { } }