[Mono-devel-list] Corlib NUnit Failures
Paolo Molaro
lupus at ximian.com
Mon May 12 05:06:37 EDT 2003
On 05/12/03 Jeroen Frijters wrote:
> > In version 1.1 of .net, MS added the SetMarshal() call on
> > MethodBuilder, so we should switch to use that instead of
> > using the 0 index (internally in the mono runtime we can
> > continue to use the same mechanism, just not expose it to the
> > user). mcs should be changed to do a GetMethod/Invoke on
> > SetMarshal, so that it can be still compiled on the 1.1
> > version of the framework.
>
> Huh? MethodBuilder.SetMarshal was in 1.0 already and it cannot be used
> to set a custom attribute on the return type (which is what
> DefinedParameter(0,...) is used for).
Uhm, my fault, I didn't remember that method being there in 1.0 and I
trusted the documentation at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemreflectionemitmethodbuilderclasssetmarshaltopic.asp
that reads:
MethodBuilder.SetMarshal Method
Sets marshaling information for the return type of this method.
So, if this doesn't work on the MS runtime, can anyone check what it
really does?
lupus
--
-----------------------------------------------------------------
lupus at debian.org debian/rules
lupus at ximian.com Monkeys do it better
More information about the Mono-devel-list
mailing list