Skip to content

Commit

Permalink
#466 Add CallerMemberName to SL5 and NET40
Browse files Browse the repository at this point in the history
  • Loading branch information
nigel-sampson committed Sep 16, 2017
1 parent ac531f9 commit e0dc7c8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Caliburn.Micro/Caliburn.Micro.NET40.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
<Compile Include="ActivationEventArgs.cs" />
<Compile Include="ActivationProcessedEventArgs.cs" />
<Compile Include="BindableCollection.cs" />
<Compile Include="CallerMemberName.cs" />
<Compile Include="Conductor.cs" />
<Compile Include="ConductorBase.cs" />
<Compile Include="ConductorBaseWithActiveItem.cs" />
Expand Down
1 change: 1 addition & 0 deletions src/Caliburn.Micro/Caliburn.Micro.SL5.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
<Compile Include="ActivationEventArgs.cs" />
<Compile Include="ActivationProcessedEventArgs.cs" />
<Compile Include="BindableCollection.cs" />
<Compile Include="CallerMemberName.cs" />
<Compile Include="Conductor.cs" />
<Compile Include="ConductorBase.cs" />
<Compile Include="ConductorBaseWithActiveItem.cs" />
Expand Down
8 changes: 8 additions & 0 deletions src/Caliburn.Micro/CallerMemberName.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace System.Runtime.CompilerServices
{
/// <summary>
/// Allows you to obtain the method or property name of the caller.
/// </summary>
[AttributeUsageAttribute(AttributeTargets.Parameter, Inherited = false)]
internal sealed class CallerMemberNameAttribute : Attribute { }
}

0 comments on commit e0dc7c8

Please sign in to comment.