Esempio n. 1
0
        public override string EvaluateQuickResult(IHotspotContext context)
        {
            if (_variableParameter == null)
            {
                return(null);
            }

            var existing = _variableParameter.GetValue();

            existing = ProcessHelper.FirstToLower(existing);
            return("_" + existing);
        }
Esempio n. 2
0
        public static string ProcessValue(Transform transform, string value)
        {
            switch (transform)
            {
            case Transform.None:
                return(value);

            case Transform.FirstLower:
                return(ProcessHelper.FirstToLower(value));

            case Transform.FirstUpper:
                return(ProcessHelper.FirstToUpper(value));

            case Transform.AllLower:
                return(value.ToLowerInvariant());

            case Transform.AllUpper:
                return(value.ToUpperInvariant());
            }
            return(value);
        }