I am having a method in which there are more then 7 parameters ,type of all the parameters are different.
Well my question is it fine or i should replace all parameters with the single class(which will contaion all parameters as a instance variable).
I am having a method in which there are more then 7 parameters ,type
Share
7 is way too much. Replace with a class. With my VS custom theme and fonts settings Intellisense wouldn’t fit on the screen when there is a method with so many parameters 🙂 I find it more readable and easier to understand when working with classes.
Of course those are just my 2 cents and it’s subjective. I’ve seen people writing methods with many many parameters.