ello, > Any suggestions?
Instead of using String.Format for the calls that will throw a user-visible error, use Locale.GetText (it takes the same arguments). When we do localization, this will reduce the work we do at that time. In general, I do not like Enum.IsDefined because it boxes the value on every call. I would rather compare to upper/lower ranges which is faster (and besides, in Mono, we are guilty of not really doing Enum parameter checks in a number of places, which one day we might want to do). If this was a common pattern, I wonder if it would be worth having the compiler inline Enum.IsDefined to avoid the boxing? Worth considering. Miguel _______________________________________________ Mono-winforms-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-winforms-list
