Hi MilkyJoe,

It looks like you hit a limitation in the AOT compiler for generics.

Sebastien can probably elaborate on this, but I'm pretty sure there is a
limitation involving things like 'int' being used in generic types and/or
LINQ statements.

Hope that helps,

Jeff

On Tue, Feb 21, 2012 at 9:28 AM, MilkyJoe <[email protected]>wrote:

> Changing my code to this worked:
>
> *Category category = categories.Where (c => c.Name ==
> categoryName).FirstOrDefault ();
> ac.CategoryId = category != null ? category.CategoryId : 0;*
>
> Looks like a bug, yes?
>
> --
> View this message in context:
> http://monotouch.2284126.n4.nabble.com/System-ExecutionEngineException-thrown-on-device-tp4406984p4407165.html
> Sent from the MonoTouch mailing list archive at Nabble.com.
> _______________________________________________
> MonoTouch mailing list
> [email protected]
> http://lists.ximian.com/mailman/listinfo/monotouch
>
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to