What I'm wondering of is whether it is possible to replace multiple characters in a string (lets say, the &, | and $ characters for example) without having to use .Replace() several times ? Currently I'm using it as
return inputData.Replace('$', ' ').Replace('|', ' ').Replace('&', ' ');
but that is just awful and I'm wondering if a similarly small, yet effective alternative is out there.
EDIT: Thanks everyone for the answers, unfortunately I don't have the 15 reputation needed to upvote people