SendGrid.Net.Mime.ContentType.WrapIfEspecialsExist C# (CSharp) Method

WrapIfEspecialsExist() static private method

static private WrapIfEspecialsExist ( string s ) : string
s string
return string
        static string WrapIfEspecialsExist(string s)
        {
            s = s.Replace("\"", "\\\"");
            if (s.IndexOfAny(especials) >= 0)
                return '"' + s + '"';
            else
                return s;
        }