/// <summary>
        /// Clones this instance.
        /// </summary>
        /// <returns></returns>
        public virtual UniversalConverterInput Clone()
        {
            var clone = new UniversalConverterInput();

            clone.MaximumValue     = MaximumValue;
            clone.MinimumValue     = MinimumValue;
            clone.Operator         = Operator;
            clone.Options          = Options;
            clone.Value            = Value;
            clone.ValueToCompare   = ValueToCompare;
            clone.Reverse          = Reverse;
            clone.StringComparison = StringComparison;
            return(clone);
        }
Esempio n. 2
0
        /// <summary>
        /// Checks Value with the specified input value.
        /// </summary>
        /// <param name="value">The value to test.</param>
        /// <param name="parameter">The parameter passed from the value converter.</param>
        /// <param name="culture">The culture passed from the value converter.</param>
        /// <returns>true if Value is equals to the specified value.</returns>
        public virtual bool Matches(object value, object parameter, CultureInfo culture)
        {
            var input = new UniversalConverterInput();

            input.MaximumValue       = MaximumValue;
            input.MinimumValue       = MinimumValue;
            input.Operator           = Operator;
            input.Options            = Options;
            input.Value              = Value;
            input.ValueToCompare     = value;
            input.Reverse            = Reverse;
            input.StringComparison   = StringComparison;
            input.ConverterParameter = parameter;
            return(input.Matches(culture));
        }
 /// <summary>
 /// Checks Value with the specified input value.
 /// </summary>
 /// <param name="value">The value to test.</param>
 /// <param name="parameter">The parameter passed from the value converter.</param>
 /// <param name="culture">The culture passed from the value converter.</param>
 /// <returns>true if Value is equals to the specified value.</returns>
 public virtual bool Matches(object value, object parameter, CultureInfo culture)
 {
     UniversalConverterInput input = new UniversalConverterInput();
     input.MaximumValue = MaximumValue;
     input.MinimumValue = MinimumValue;
     input.Operator = Operator;
     input.Options = Options;
     input.Value = Value;
     input.ValueToCompare = value;
     input.Reverse = Reverse;
     input.StringComparison = StringComparison;
     input.ConverterParameter = parameter;
     return input.Matches(culture);
 }
 /// <summary>
 /// Clones this instance.
 /// </summary>
 /// <returns></returns>
 public virtual UniversalConverterInput Clone()
 {
     UniversalConverterInput clone = new UniversalConverterInput();
     clone.MaximumValue = MaximumValue;
     clone.MinimumValue = MinimumValue;
     clone.Operator = Operator;
     clone.Options = Options;
     clone.Value = Value;
     clone.ValueToCompare = ValueToCompare;
     clone.Reverse = Reverse;
     clone.StringComparison = StringComparison;
     return clone;
 }