[Mono-dev] Please revert your changes.

Miguel de Icaza miguel at novell.com
Wed Aug 10 11:01:34 EDT 2005


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


> 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



More information about the Mono-devel-list mailing list