[Mono-dev] Please revert your changes.

Pascal Fresnay pascalfresnay at free.fr
Wed Aug 10 03:47:29 EDT 2005


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
>Mono-devel-list at lists.ximian.com
>http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
>  
>
My tests with 1.1 SP1 :
PAFR at ceylan ~
$ 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));
}
}

PAFR at ceylan ~
$ /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.


PAFR at ceylan ~
$ ./test.exe
System.Runtime.InteropServices._CustomAttributeBuilder
System.Runtime.InteropServices._CustomAttributeBuilder





More information about the Mono-devel-list mailing list