Biren Prajapati <se*********@gmail.com> wrote:
Is it advisable to make the method static if it is widely used in the
system? Will it increase the performance or decrease the performance?
It's unlikely to have any significant effect on performance. You should
make the method static or an instance method depending on whether it
logically acts on an instance or not. Think of maintainability,
readability and good design first - you can fix performance of things
like this if and when it becomes an issue. (Architecture is hard to
optimise later on - code is relatively easy.)
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog:
http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too