Do private static methods in C# hurt anything?

Posted by fish on Programmers See other posts from Programmers or by fish
Published on 2011-08-31T15:49:39Z Indexed on 2012/10/22 23:17 UTC
Read the original article Hit count: 360

Filed under:
|

I created a private validation method for a certain validation that happens multiple times in my class (I can't store the validated data for various reasons). Now, ReSharper suggests that the function could be made static. I'm a little reluctant to do so due known problems with static methods. It would be a private static method. My question is, can private static methods cause similar coupling and testing problems like public static methods? Is it a bad practice? I would guess not, but I'm not sure if there is a pitfall here.

© Programmers or respective owner

Related posts about c#

Related posts about static-methods