[Mono-list] Embedded API: Method signature not found with generic parameter

jonathan at mugginsoft.com jonathan at mugginsoft.com
Fri Jul 12 19:43:06 UTC 2013

> You have to unbox the result of mono_runtime_invoke because it
> returns the IntPtr boxed in a MonoObject*.
> Something like that:
> MonoObject* obj = mono_runtime_invoke (...)
> MonoMethod* genericMethod = *(MonoMethod**) mono_object_unbox (obj);

The above makes sense but it aborts with:

System.Data.Entity.Core.Objects.ObjectSet<Data.Employee> doesn't implement interface System.Collections.Generic.IEnumerable<System.Data.Entity.Core.Objects.ObjectSet<Data.Employee>>

mono_class_get_interfaces(ObjectSet) says:

Interface name: IObjectSet`1
Interface name: IQueryable`1
Interface name: IEnumerable`1
Interface name: IQueryable
Interface name: IEnumerable


More information about the Mono-list mailing list