Created
March 30, 2012 19:45
-
-
Save tpetrina/2254393 to your computer and use it in GitHub Desktop.
Attribute types definitions for using C# 5 caller info attributes in projects targeting earlier frameworks i.e. before .NET 4.5
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
namespace System.Runtime.CompilerServices | |
{ | |
[AttributeUsage(AttributeTargets.Parameter, Inherited = false)] | |
public sealed class CallerMemberNameAttribute : Attribute | |
{ | |
public CallerMemberNameAttribute() | |
{ } | |
} | |
[AttributeUsage(AttributeTargets.Parameter, Inherited = false)] | |
public sealed class CallerFilePathAttribute : Attribute | |
{ | |
public CallerFilePathAttribute() | |
{ | |
} | |
} | |
[AttributeUsage(AttributeTargets.Parameter, Inherited = false)] | |
public sealed class CallerLineNumberAttribute : Attribute | |
{ | |
public CallerLineNumberAttribute() | |
{ | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment