Method overload - good or bad design?

I like to overload methods to support more and more cases by default. What is the impact of method overload on performance? From your experience, is it advisable to overload the methods? What is the limit? What are the workarounds?

+7
design c # overloading
source share
3 answers

Overloading does not affect performance; it is resolved by the compiler at compile time.

For design guidelines, see design guidelines:

http://msdn.microsoft.com/en-us/library/ms229029.aspx

+10
source share

If you are using C # 4.0, you can save your fingers a little and use additional parameters .

+5
source share
  • The performance impact, as far as I know, is like defining a new method. Performance Impact - This is the place on your hard drive.
  • Overload methods are recommended. Specifically, this provides convenience.
  • What is the limit, How much harddrive space is like yours.
+2
source share

All Articles