Static vs. non-static method

As defined, power is stateless and has no side effects on any enclosing class so it should be declared static.

This article from MSDN goes into some of the performance differences of non-static versus static. The call is about four times faster than instantiating and calling, but it really only matters in a tight loop that is a performance bottleneck.

Leave a Comment