c# - How to change a file which is too large (got warning from StyleCop)? -


I'm receiving a warning about my file by StyleCop.

  • WARNING 1 CR0005: The file is too long on 508 lines. Please consider reconstruction to make it 500 or less row.

  • WARNING 2 CR0002: The method is too long It is 58 lines long, consider recapitulation to make lines 50 or less

How are you changing your code? What are the best practices for this? I do not have any idea of ​​dividing my code smaller - I am very afraid to make my code.

So, please help ^ _ ^!

Name

Martin's follower book "Refactoring: Improving the Design of the Existing Code" and "Professional Refactoring in C # And app; ASAP Denizel Arsenovsky of Net ".


Comments