static string QuoteName()

in aspnet/Microsoft.Samples.XMLA.HTTP/Microsoft.Samples.XMLA.HTTP.Proxy/Controllers/QueryController.cs [233:251]


        static string QuoteName(string identifier)
        {
            var sb = new System.Text.StringBuilder(identifier.Length + 3, 1024);
            sb.Append('\'');
            foreach (var c in identifier)
            {
                if (c == '\'')
                {
                    sb.Append("''");
                }
                else
                {
                    sb.Append(c);
                }
            }
            sb.Append('\'');
            return sb.ToString();

        }