Miguel de Icaza a écrit :

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.

Miguel.
_______________________________________________
Mono-devel-list mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/mono-devel-list


My tests with 1.1 SP1 :
[EMAIL PROTECTED] ~
$ more test.cs
using System;
using System.Reflection.Emit;

class X {
static void Main ()
{
       foreach(Type t in typeof (CustomAttributeBuilder).GetInterfaces())
       Console.WriteLine(t);

Console.WriteLine(typeof(System.Runtime.InteropServices._CustomAttribute
Builder));
}
}

[EMAIL PROTECTED] ~
$ /cygdrive/c//WINNT/Microsoft.NET/Framework/v1.1.4322/csc test.cs
Microsoft (R) Visual C# .NET Compiler version 7.10.6001.4
for Microsoft (R) .NET Framework version 1.1.4322
Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.


[EMAIL PROTECTED] ~
$ ./test.exe
System.Runtime.InteropServices._CustomAttributeBuilder
System.Runtime.InteropServices._CustomAttributeBuilder


_______________________________________________
Mono-devel-list mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Reply via email to