EscapeValue() публичный статический Метод

Escaped a value by replacing single quote, close brace, asterisk and exclamation with their encoded counterparts.
public static EscapeValue ( string value ) : string
value string Unescaped value to escape.
Результат string
Пример #1
0
        /// <summary>
        /// Create a Utme-encoded parameter string containing the details of a given EventActivity.
        /// </summary>
        /// <param name="event">Event to encode.</param>
        /// <returns>Utme-encoded parameter string representing this EventActivity.</returns>
        private static string ToEventParameter(EventActivity @event)
        {
            var queryValue = UtmeEncoder.Encode("5", @event.Category, @event.Action, @event.Label);

            if (@event.Value.HasValue)
            {
                queryValue += "(" + UtmeEncoder.EscapeValue(@event.Value.Value.ToString(CultureInfo.InvariantCulture)) + ")";
            }

            return(queryValue);
        }