Replace Multiple Strings In String (Заменяне на няколко думи в стринг)
Mon May 15 2023 06:09:34 GMT+0000 (Coordinated Universal Time)
Saved by
@HristoT
var replacements = new Dictionary<string, string>
{
{ "€", "€" },
{ "§", "§" },
{ " ", " " },
{ ">", ">" },
{ "<", "<" },
{ "&", "&" },
};
var messageWithReplacedValues = replacements.Aggregate(/* the string */, (current, replacement) => current.Replace(replacement.Key, replacement.Value));
content_copyCOPY
Comments