It's not strictly required that they have the same targetsite or stacktrace. anyone relying on that information is likely to be broken between minor releases of .net anyway, if microsoft moves code around.
We should be as compatible as possible, and in many cases I'd agree with you that the code should be changed to accommodate that. In this case, though, I think it's unnecessary. The use of InternalBorderStyle consolidates all the various BorderStyle get/set implementations into one spot, and is good for that reason. If we find at some point that a subclass's implementation of BorderStyle differs from the usual case, we can discuss about duplicating the code. Chris On Sat, 2006-12-23 at 13:17 +0100, Daniel Nauck wrote: > Hello, > > today everaldo and i discussed about Exceptions in MWF. > If it is required that they have the same TargetSite and StackTrace as > in .NET. > > The concrete example was revision: 69983. > > .NET throw the InvalidEnumArgumentException at > UserControl.set_BorderStyle and > Mono at UserControl.set_InternalBorderStyle. > > In my opinion MWF should throw an exception in the same method as .NET > to be as compatible as possible. > > by, > Daniel > _______________________________________________ > Mono-winforms-list maillist - [email protected] > http://lists.ximian.com/mailman/listinfo/mono-winforms-list _______________________________________________ Mono-winforms-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-winforms-list
