I\'m looking for String extension methods for TrimStart() and TrimEnd() that accept a string parameter.
TrimStart()
TrimEnd()
I could build one myself but I\'m alw
TrimStart and TrimEnd takes in an array of chars. This means that you can pass in a string as a char array like this:
var trimChars = " .+-"; var trimmed = myString.TrimStart(trimChars.ToCharArray());
So I don't see the need for an overload that takes a string parameter.