Miguel de Icaza a écrit :

Hello,

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.

As I said last night, the issue was that I posted the wrong sample, here
is the correct sample:

using System;
using System.Reflection.Emit;

class X {
        static void Main ()
        {
                // The following line does not build
                //Type j = typeof 
(System.Runtime.InteropServices._CustomAttributeBuilder);
                
                Type t = typeof (CustomAttributeBuilder);

                foreach (Type i in t.GetInterfaces ()){
                        Console.WriteLine ("Interface: " + i);
                }
        }
}

This sample displays nothing when compiled on my system which has:

        .NET 1.1 SP1
        .NET SDK 1.1


it seems that there is various .NET 1.1 SP1 :)
First, I think that .NET SDK is not necessary, csc.exe is included in redistribuable package.
What is your mscorlib version number ?
on my config :
$ /cygdrive/c/WINNT/Microsoft.NET/Framework/v1.1.4322/gacutil.exe -l mscorlib

Microsoft (R) .NET Global Assembly Cache Utility.  Version 1.1.4318.0
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.

The Global Assembly Cache contains the following assemblies:

The cache of ngen files contains the following entries:
mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c5619 34e089, Custom=5a00410050002d004e0035002e0030002d0038004600440053002d00300030003
000310043003200330032000000
mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c5619 34e089, Custom=5a00410050002d004e0035002e0030002d003800460053002d003100300031003
80046003700390037000000

Number of items = 2

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.

I have read it, but am still debating whether we should follow or not.

Having a new interface is not terrible compared to having a new base
class.

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



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

Reply via email to