[Mono-dev] [PATCH] Calling COM methods with delegates

Bill Holmes billholmes54 at gmail.com
Wed Sep 9 17:19:10 EDT 2009


The attached patch fixes a bug with calling a COM method using a
delegate.  I have also added a unit test for this bug.

2009-09-09  Bill Holmes  <billholmes54 at gmail.com>

	* object.c (mono_object_get_virtual_method) : Call
	  mono_cominterop_get_invoke if the object is a COM object.

	* mini-trampolines.c (mono_delegate_trampoline) : Call
	  mono_cominterop_get_invoke if the delegate target object
	  is a COM object.

	* cominterop.cs : Adding a test for invoking delegates that
	  target COM methods.

	Code is contributed under MIT/X11 license.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: invoke_com_delegate.patch
Type: application/octet-stream
Size: 5863 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20090909/a845f048/attachment.obj 

More information about the Mono-devel-list mailing list