Rick,
If "preventing" overloading was important, as you indicate they can be
"confusing" for some developers. You could always use or create a tool such
as FxCop with a rule that indicates that overloaded functions are bad. Then
use the tool as part of your code reviews.
I personal find overloading to be a very powerful & useful tool when writing
programss.
Hope this helps
Jay
|
| | > Rick,
| > | Is there any way to make a sub/function that you can neither override
| > nor
| > | overload?
| > As you know, you can use NotOverridable to prevent a method from being
| > overridden, however you cannot prevent overloading.
| >
| > Just out of curiosity, what do you think not overloading is going to buy
| > you?
| >
|
| Its really to prevent another developer from overloading the function and
| then complaining when it doesnt do what its supposed to. And its not
really
| my question, it was asked of me, and I didnt know the answer. So i guess
I
| dont know the whole reason, but I know that its more to prevent it so that
| it will not confuse rather than that it will cause any actual harm.
|
|
|