From: hammett <ha...@uo...> - 2004-11-12 12:38:52
|
Hiya! ----- Original Message ----- From: "Jerry Shea" <jer...@re...> > I was trying to upgrade nhibernate's proxies to the latest version of > DynamicProxy too and was having exactly the same problem - glad to hear it > wasn't just me! Hope its not a problem anymore ;-) > On the subject of proxies, would it be a reasonable feature request to be > able to configure DynamicProxy to warn if it is trying to generate a proxy > for a class which does not have all of its public methods virtual? But it is possible and valid to override: - virtual public - virtual protected (family) - virtual protected internal What its not valid: - private - virtual internal (btw Darrick told me about this bug) About generating warnings.. Well, I'm a bit skeptical about this methods (we've talked about it before). What a warning is going to be? - Console output? - A event? - A simple callback/delegate? In any case, the user must pay attention/listen to these warnings. I'm convinced that warning the user about non-virtual methods can be a good thing (there are a lot of people requesting something similar) I'm just not sure how to handle it... :-( Ideas? -- Cheers, hammett http://www.digitalcraftsmen.com.br/~hammett |