Your only option seems to be to completely specialize this routine into
a switch statement that handles all possible types :-/
-- MR

On 14.08.2012 11:26, Goncalo Oliveira wrote:
> I'm kind of lost here. I've found exactly what's failing and where. I
> have some code that's basically trying to do this:
>
> Type targetType = Target.GetType(); // type is Android.Widget.Spinner
> PropertyInfo getterProperty = targetType.GetProperty( getterPath );
>
> In release getterProperty is returning null. Seems like the linker is
> excluding the property, or at least, that is my understanding.
> As you stated, I have no code, so "Preserve" is not available. Also
> this is dynamic and target type could be an EditText or something
> else. How exactly can I implement the falseflag method here?
>
> Cheers
>
>
>
> On 26 July 2012 03:55, Jonathan Pryor <j...@xamarin.com
> <mailto:j...@xamarin.com>> wrote:
>
>     On Jul 24, 2012, at 5:45 AM, Goncalo Oliveira <gonc...@minkan.net
>     <mailto:gonc...@minkan.net>> wrote:
>     > Let me see if I get this straight. I do have an additional
>     project that is referenced by the application. It's basically the
>     data model classes. I need to add the
>     "[Android.Runtime.Preserve(AllMembers=true)]" attribute to the
>     classes in this assembly in order to avoid the linker to "eat up"
>     its references? Either that or the weird falseflag method?
>
>     Generally you should start with "Link SDK Assemblies". Using the
>     "Link All Assemblies" option is for the insane.
>
>     If Link SDK Assemblies fails, it's generally because the linker
>     isn't smart enough to preserve SDK members that you're using.
>     Using [Preserve] won't help (no source!), so you'd want to use
>     falsflag or linkskip.
>
>      - Jon
>
>     _______________________________________________
>     Monodroid mailing list
>     Monodroid@lists.ximian.com <mailto:Monodroid@lists.ximian.com>
>
>     UNSUBSCRIBE INFORMATION:
>     http://lists.ximian.com/mailman/listinfo/monodroid
>
>
>
>
> -- 
> Gonçalo Oliveira
>
>
> _______________________________________________
> Monodroid mailing list
> Monodroid@lists.ximian.com
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to