Exemplo n.º 1
0
        // Token: 0x060001A1 RID: 417 RVA: 0x00007684 File Offset: 0x00005884
        internal string QuoteString(string inputString)
        {
            StringBuilder stringBuilder = new StringBuilder(inputString.Length + 2);

            stringBuilder.Append("\"");
            foreach (char c in inputString)
            {
                if (c < '\u0080' && MimeScan.IsEscapingRequired((byte)c))
                {
                    stringBuilder.Append("\\");
                }
                stringBuilder.Append(c);
            }
            stringBuilder.Append("\"");
            return(stringBuilder.ToString());
        }