[Mono-list] Embedded API: MonoObject equality

Jonathan Lima greenboxal at gmail.com
Thu Mar 20 22:43:01 UTC 2014


AFAIK MonoObject is the pointer to the object in the heap, so you just have
to compare the pointers.

Jonathan


On Thu, Mar 20, 2014 at 7:31 PM, jonathan at mugginsoft.com <
jonathan at mugginsoft.com> wrote:

> What is the bet way to determine if successive MonoObject * pointers refer
> to the same managed object?
>
> Currently I use mono_object_hash(monoObject).
> Is that the best approach?
>
> My unmanaged code triggers and receives events.
> I need to be able to identify if the MonoObject that triggers the event
> appears as the event sender.
>
> Jonathan
>
>
>
>
>
>
>
>
>
>
>
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>



-- 
Thanks,
Jonathan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20140320/798e3383/attachment.html>


More information about the Mono-list mailing list