System.Xml.Tests.ExceptionVerifier.MakeEscapes C# (CSharp) Method

MakeEscapes() private static method

private static MakeEscapes ( string str ) : string
str string
return string
        private static string MakeEscapes(string str)
        {
            return new[] { "\\", "$", "{", "[", "(", "|", ")", "*", "+", "?" }.Aggregate(str, (current, esc) => current.Replace(esc, "\\" + esc));
        }