[Mono-dev] Problem with patch for TypeBuilder.UnderlyingSystemType

Rodrigo Kumpera kumpera at gmail.com
Thu Jul 12 20:10:53 EDT 2007


Hey,

The msdn docs aren't very helpfull on that. I'll take a look at
TypeDelegator. Besides that, what I'm
 trying to do is getting the attached
program working on mono, it should print "ok1 ok2 ok3... ok7", but instead
returns the wrong type in the first test and throws OutOfMemory for the
remaining tests. I'm still tackling the first issue, which the patch I sent
was trying to fix but didn't manage to.

Cheers,
Rodrigo

On 7/12/07, Zoltan Varga <vargaz at gmail.com> wrote:
>
>                      Hi,
>
>   Contrary to his name, UnderlyingSystemType has nothing to do with enum
> basetypes. It is there for people implementing their own type classes, see
> System.Reflection.TypeDelegator for an example.
>
>                             Zoltan
>
> On 7/13/07, Rodrigo Kumpera <kumpera at gmail.com> wrote:
> > Hey guys,
> >
> > I haveve written a small patch to implement
> > TypeBuilder.UnderlyingSystemType form enum types, but for
> > some reason some tests are failing now and I can't figure out why :(
> >
> > With the attached patch applied the tests System.EnumTest.TestGetValuesand
> > System.Reflection.Emit.EnumBuilderTest.TestDefineLiteralTypeIncomplete
> > fail. The first one without any apparent reason, even after digging a
> lot of
> > the source. The second one fails only on 1.1 with no apparent reason.
> > Someone has a clue to why this is happening?
> >
> >
> > Thanks!
> > Rodrigo
> >
> > _______________________________________________
> > Mono-devel-list mailing list
> > Mono-devel-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-devel-list
> >
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20070712/419d799b/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: x.cs
Type: application/octet-stream
Size: 2703 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20070712/419d799b/attachment.obj 


More information about the Mono-devel-list mailing list