[Mono-list] Embedded API: Delegate Type Name query
Robert Jordan
robertj at gmx.net
Tue Aug 30 10:43:53 UTC 2016
On 30.08.2016 00:05, Jonathan Mitchell wrote:
> Hi
>
> I am using https://github.com/robert-j/Mono.Embedding to implement universal delegate callbacks to Obj-C.
>
> I treat the delegate objects as if they are nested classes (which is how they sort of present themselves to my reflection code).
> However when generating a method signature it seems that the nested delegate requires a / separator as opposed to a +.
>
> Method name: Dubrovnik.UnitTests.ReferenceObject:InvokeSimpleDelegate (Dubrovnik.UnitTests.ReferenceObject/SimpleDelegate)
>
> There is no mention of this here https://msdn.microsoft.com/en-us/library/system.type.assemblyqualifiedname.aspx.
> Is this a just Mono-ism or am I missing something?
IIRC, this is a feature of the mono_method_desc* APIs.
Nested types are separated by "/" in theses APIs.
Robert
More information about the Mono-list
mailing list