[Mono-dev] Please revert your changes.

Kornél Pál kornelpal at hotmail.com
Wed Aug 10 05:17:00 EDT 2005


Miguel,

Your code does not print anything at all that may be the reason you see
nothing.

typeof(_CustomAttributeBuilder) may fail because you did not import
System.Runtime.InteropServices as Jeroen Frijters has written before me.

If the code provided by Pascal Fresnay fails for you then you can make sure
that you are not using .NET Framework 1.1 SP1.

BTW please read my previous (long) message that begins with some explanation
about RTM in this thread as it contains a lot of information and my opinion
about SP1 extensions.

Kornél

----- Original Message -----
From: "Pascal Fresnay" <pascalfresnay at free.fr>
To: "Miguel de Icaza" <miguel at novell.com>; "mono-devel"
<Mono-devel-list at lists.ximian.com>
Sent: Wednesday, August 10, 2005 9:47 AM
Subject: Re: [Mono-dev] Please revert your changes.


> 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
>
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>




More information about the Mono-devel-list mailing list