text: public override string Quote(string @in){StringBuilder r = new StringBuilder();r.Append('\'');int start = 0;int i = 0;for (; i < @in.Length; i++){switch (@in[i]){case '\'':case '!':{r.AppendRange(@in, start, i);r.Append('\'');r.Append('\\');r.Append(@in[i]);r.Append('\'');start = i + 1;break;}}}r.AppendRange(@in, start, i);r.Append('\'');return r.ToString();}