Пример #1
0
        /// <inheritdoc />
        protected override void Execute(Context context)
        {
            var str      = String.Get(context);
            var oldValue = OldValue.Get(context);

            if (str == null || oldValue == null)
            {
                String.Set(context, null);
                return;
            }
            var newValue = NewValue.Get(context) ?? "";

            String.Set(context, str.Replace(oldValue, newValue));
        }