Created
March 8, 2013 12:01
-
-
Save davidblurton/5116002 to your computer and use it in GitHub Desktop.
Allow you to use caller member name attribute in .NET 4. Requires the C#5 compiler so all developers must be using VS2012 else it will fail silently.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ReSharper disable CheckNamespace | |
namespace System.Runtime.CompilerServices | |
// ReSharper restore CheckNamespace | |
{ | |
[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false, Inherited = true)] | |
public sealed class CallerMemberNameAttribute : Attribute | |
{ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment