I do not think there is a standard for this. I try to make a BlahUtil static class. For your example, I would make a static method on StringUtil . This helps me group related methods into reasonable units, making it easier to spot them and share them between teams.
Then you can also choose which of these methods will be shown as extension methods (starting with C # 3.0):
public static class StringUtil { public static string RemoveFirstLine(this string multiLineString) {
Drew noakes
source share