If I have a Utilities.cs class in C#, which contains only static methods
e.g.
public static string DoSomething()
{
return "something";
}
Should I make the class itself static?
public static Utilities()
{
...
Does making the class static have any advantages?
Yes you should. It stops people from instantiating the class when they shouldn’t, and makes the purpose of the class clearer. Have a read of the MSDN page for more information.
You also need to mark the class as static if you want to add Extension Methods
You should think carefully about utility classes. Think whether the methods truly belong there, or if there’s a more OO way of doing it.
Also look at this question and the answer by Jon Skeet.