2008-07-04 Mark Probst <mark.probst@gmail.com>
authorMark Probst <mark.probst@gmail.com>
Fri, 4 Jul 2008 14:55:42 +0000 (14:55 -0000)
committerMark Probst <mark.probst@gmail.com>
Fri, 4 Jul 2008 14:55:42 +0000 (14:55 -0000)
commitab76e98c8814fdfa0aea7a31bbabfda5b4e86300
tree3fbb05083afe717698a239d99986a20548207a85
parentca49920f90fb437673a9665c682385cb5e28502f
2008-07-04  Mark Probst  <mark.probst@gmail.com>

* object.c, object-internals.h, icall.c: New function
mono_delegate_ctor_with_method(), which does the same as
mono_delegate_ctor(), but takes an explicit method argument
instead of taking the method from the jit info.

* marshal.c: When creating a delegate with an inflated method take
the "this" argument as the target class for the castclass.

svn path=/trunk/mono/; revision=107252
mono/metadata/ChangeLog
mono/metadata/icall.c
mono/metadata/marshal.c
mono/metadata/object-internals.h
mono/metadata/object.c
mono/tests/ChangeLog
mono/tests/Makefile.am
mono/tests/generic-delegate2-lib.2.il [new file with mode: 0644]
mono/tests/generic-delegate2.2.cs [new file with mode: 0644]