Пример #1
0
    public ConditionCompare(ValueProviderBase?valueProvider, string operation, string value, Action <bool, string> addError)
    {
        this.ValueProvider = valueProvider;
        this.Operation     = FilterValueConverter.ParseOperation(operation);
        this.Value         = value;

        ValueProvider?.ValidateConditionValue(value, Operation, addError);
    }
Пример #2
0
        internal AnyNode(INodeProvider nodeProvider, ValueProviderBase valueProvider, string operation, string value, Action <bool, string> addError) : base(nodeProvider)
        {
            this.ValueProvider = valueProvider;
            this.Operation     = FilterValueConverter.ParseOperation(operation);
            this.Value         = value;

            ValueProvider?.ValidateConditionValue(value, Operation, addError);
        }
            internal IfNode(ValueProviderBase valueProvider, string operation, string value, Action <bool, string> addError)
            {
                this.ValueProvider = valueProvider;
                this.Operation     = FilterValueConverter.ParseOperation(operation);
                this.Value         = value;

                ValueProvider.ValidateConditionValue(value, Operation, addError);

                this.IfBlock = new BlockNode(this);
            }
        internal IfNode(ValueProviderBase valueProvider, string operation, string value, Action<bool, string> addError)
        {
            this.ValueProvider = valueProvider;
            this.Operation = FilterValueConverter.ParseOperation(operation);
            this.Value = value;

            ValueProvider.ValidateConditionValue(value, Operation, addError);
        }