Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
Created attachment 3922 [details]
* Run the provided sample on device.
* This exception will show up:
at System.Linq.Expressions.Expression.Field (System.Linq.Expressions.Expression expression, System.Reflection.FieldInfo field) [0x00049] in /Developer/MonoTouch/Source/mono/mcs/class/System.Core/System.Linq.Expressions/Expression.cs:1354
at TestLib.TestClass.BindHidden[TC,Boolean] (TestLib.Foo target, TestLib.TC source, System.Linq.Expressions.Expression`1 sourcePropertyAccessor) [0x0000f] in /Users/rolf/Library/Caches/Opera/temporary_downloads/ReflectionTest/tmp/ReflectionTest/TestClass.cs:27
The sample executes successfully in the simulator.
Zoltan, is this running into one of our generics limitations?
The problem appears to be related to introducing a second Expression<Func<T>> to the method. In this case the "sourcePropertyAccessor" argument.
Fixed in master(420ba5e9986351c0ce4bb5c8a7ff9d7c626fa637), 2.10 (7e4adab08fb1607e865659384fe2cda751b54991), and mobile-master(7b73ccbef5d85d6cdba6ba93e58512ec327cc250).