[Mono-dev] Please revert your changes.
Gert Driesen
gert.driesen at telenet.be
Wed Aug 10 02:29:13 EDT 2005
> -----Original Message-----
> From: Miguel de Icaza [mailto:miguel at novell.com]
> Sent: woensdag 10 augustus 2005 7:20
> To: Jeroen Frijters
> Cc: Gert Driesen; mono-devel-list at ximian.com
> Subject: RE: [Mono-dev] Please revert your changes.
>
> Hello,
>
> > > Type t = typeof (CustomAttributeBuilder);
> > > Console.WriteLine (t.BaseType);
> > >
> > > And it does not display anything. When compiled with
> csc 8, it does
> > > display _CustomAttributeBuilder.
> >
> > Huh? _CustomAttributeBuilder is an interface, so it
> obviously won't show
> > up with the above code (not on csc 8 either) and it
> definitely exists in
> > NET 1.1 SP1.
>
> Sorry, I posted the wrong code snipped.
>
> My other piece of code (now at work) calls:
>
> foreach (Type t in typeof (CustomAttributeBuilder).GetInterfaces()){
> }
>
> And that code does not display _CustomAttributeBuilder.
>
> And typeof(_CustomAttributeBuilder) fails to build.
The following code snippet produces the expected result on my system:
using System;
using System.Reflection.Emit;
using System.Runtime.InteropServices;
public class Test {
public static void Main() {
foreach (Type t in typeof
(CustomAttributeBuilder).GetInterfaces()) {
Console.WriteLine(t.FullName);
}
Console.WriteLine (typeof
(_CustomAttributeBuilder).FullName);
Console.WriteLine (Environment.Version.ToString());
}
}
Result:
System.Runtime.InteropServices._CustomAttributeBuilder
System.Runtime.InteropServices._CustomAttributeBuilder
1.1.4322.2032
Gert
More information about the Mono-devel-list
mailing list