[Mono-list] Embedded API method signatures

Robert Jordan robertj at gmx.net
Fri Sep 6 09:52:03 UTC 2013


Jonathan,

On 05.09.2013 21:38, jonathan at mugginsoft.com wrote:
> In Obj-C -> embedded API I invoke a method like so:
>
> MonoObject *monoObject = [self invokeMonoMethod:"Sum(long[])" withNumArgs:1, [p1 monoValue]];
>
> The following however fails to find the specified method:
> MonoObject *monoObject = [self invokeMonoMethod:"Sum(System.Int64[])" withNumArgs:1, [p1 monoValue]];
>
> It it right to conclude that all of the built in types listed below must use their aliases in type signatures and that this requirement is immutable.
> http://msdn.microsoft.com/en-us/library/ya5y69ds.aspx
>
> Jonathan

It's better if you'd look directly at Mono's source to obtain a
precise mapping of these primitive types:

https://github.com/mono/mono/blob/master/mono/metadata/debug-helpers.c#L90

Robert




More information about the Mono-list mailing list