This is Xamarin's bug tracking system. For product support, please use the support links listed in your Xamarin Account.
Bug 8829 - Argument decorated with [CallerMemberName] comes up null when caller is in different assembly
: Argument decorated with [CallerMemberName] comes up null when caller is in di...
Status: RESOLVED FIXED
Product: Compilers
Classification: Mono
Component: C#
: unspecified
: PC Linux
: --- normal
: ---
Assigned To: Marek Safar
:
:
:
:
  Show dependency treegraph
 
Reported: 2012-12-06 19:49 EST by Andrew Clunis
Modified: 2012-12-12 10:01 EST (History)
2 users (show)

See Also:
Tags:
Test Case URL:
External Submit: ---


Attachments
Assembly2: Code that uses [CallerMemberName] to intercept an incoming caller. (368 bytes, text/x-csharp)
2012-12-06 19:49 EST, Andrew Clunis
Details
Assembly1: Code that invokes the code in Assembly2.cs. (269 bytes, text/x-csharp)
2012-12-06 19:51 EST, Andrew Clunis
Details

Description Andrew Clunis 2012-12-06 19:49:33 EST
Created attachment 3071 [details]
Assembly2: Code that uses [CallerMemberName] to intercept an incoming caller.

Test case attached.

Thank you. :)
Comment 1 Andrew Clunis 2012-12-06 19:51:55 EST
Created attachment 3072 [details]
Assembly1: Code that invokes the code in Assembly2.cs.
Comment 2 Andrew Clunis 2012-12-06 19:54:52 EST
Create two separate assemblies, Assembly1 as an executable and Assembly2 as a
library.  Assembly1 depends on Assembly2.

Tested and fails against Mono 3.0.0 on Linux.  Works with MS .net 4.5 on
Windows.
Comment 3 Marek Safar 2012-12-12 10:01:42 EST
Fixed in master

Note You need to log in before you can comment on or make changes to this bug.