public override string EvaluateQuickResult(IHotspotContext context)
        {
            if (_variableParameter == null)
            {
                return(null);
            }

            var value = _variableParameter.GetValue();

            if (string.IsNullOrEmpty(value))
            {
                return(value);
            }

            value = ProcessHelper.RemovePrefix(value, _prefix);
            value = ProcessHelper.RemoveSuffix(value, _suffix);

            return(ProcessHelper.ProcessValue(_transform, value));
        }
Exemplo n.º 2
0
 public string Transform(string value)
 {
     return(ProcessHelper.RemoveSuffix(value, _suffix));
 }