Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you organize your Utility functions?

Tags:

c#

asp.net

I'm programming in an ASP.NET environment and Im thinking of separating my utility functions into 3 classes - Presentation.cs, Business.cs, Data.cs. What do you think? How do you organize your utility functions?

like image 443
burnt1ce Avatar asked Dec 02 '25 19:12

burnt1ce


1 Answers

I organize my utility functions based on the type of data they process. I also give the class and file name the Util suffix to distinguish it as a general purpose utility class. For instance

  • PresentationUtil.cs
  • EnumUtil.cs
  • LambdaUtil.cs
like image 108
JaredPar Avatar answered Dec 04 '25 08:12

JaredPar