Quantcast
Channel: Web Forms
Viewing all articles
Browse latest Browse all 23244

Design question about class size C#

$
0
0

I'm not sure if it matters, but is there an optimium class file size? Meaning, I split my logic into natural areas; i.e. user.cs, util.cs, etc. I use these classes to containerize code into what I call controllers for general reusability, etc. It's a 4.5 webform app. Is it better to have more class files, or put more code into one?

From a resource perspective. Reference a class i.e. cUtil.cs oUtil = new cUtil();

It makes better sense to split into more files for readability, maintainablity, and use. But is it better to have one class init and not many for resource utilitization.

Make sense?

Thank you.


Viewing all articles
Browse latest Browse all 23244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>