Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ideal class name for static class for misc functionalities [duplicate]

Whats is the ideal class name for my static class which has some static methods to handle General/Common functionalities iike taking backup,saving recent items etxc.. (Infact Misc items ) in C#. I would like to have Manager as suffix of the class name (ex: SaleManager(to handle sales related functionalities),ContatManager(to handle contact related functionality)

like image 770
Shyju Avatar asked May 21 '26 14:05

Shyju


2 Answers

RefactorMeManager.

like image 200
Mathias Avatar answered May 23 '26 03:05

Mathias


Here are some .NET Framework classes that perform these types of operations:

  • System.Environment
  • System.Math
  • System.IO.File
  • System.IO.Directory
  • System.IO.Path
  • System.Runtime.InteropServices.Marshal

As you can see, the routines are grouped by topic into classes, and none of the classes have "Helper" or "Utilities" appended. Here are some classes I've made that perform some of these types of things:

  • SymbolicMath (like the Math class, but for working with symbolic math expressions)
  • BigIntegerMath (library of large-integer arithmetic using System.Numerics.BigInteger type - primality proving, factoring, and some other things)
like image 23
Sam Harwell Avatar answered May 23 '26 03:05

Sam Harwell