Hello,
Is there any maximum limit of .cs file in terms of no of lines or size? If it is What is that limit?
I referred on web and learn that there is know limit as such, if true what is the good practise to keep file size? Will there any performance impact of heavy file size.
Thanks,
Sachin
VulpesPosted Nov 7, 2013, 8:55 AM
However, very large files tend to slow down development as they can make it difficult 'to see the wood for the trees'. They may also degrade the responsiveness of VS (or another IDE) as you make changes to and scroll through the code etc.
My own view is that a file should ideally be limited to a single class, together with any small support classes. Also methods or properties within the class should ideally be limited to what you can see on the screen without scrolling.