[Mono-devel-list] TypeBuilder and Exceptions

Miguel de Icaza miguel at ximian.com
Tue Mar 9 10:41:12 EST 2004


Hello,

> Someone has noted this for the particular case of GetEvents in TypeBuilder.cs:
> 
> 	public override EventInfo[] GetEvents (BindingFlags bindingAttr) {
> 		// FIXME: Under MS.NET, this throws a NotImplementedException
> 		// But mcs calls this method. How can that be?
> 		return new EventInfo [0];
> 
> I am not sure if mcs still uses GetEvents or if mcs uses any of the other 
> methods for which .NET throws an exception. However, if maximum compatibility 
> with .NET is desired, it seems that checking which reflection methods .NET 
> permits and matching that behavior on Mono, while keeping mcs working with 
> these changes, needs to be done.

This seems to be an arbitrary limitation in .NET;  At some point we
started adding some of those limitations to Mono, but if our
implementation allows it, I do not know why we should impose the design
limitation



More information about the Mono-devel-list mailing list