At.FF.Krems.Utils.WPF.Converters.IntGreaterParamToTrue.Convert C# (CSharp) Method

Convert() public method

Converts a value.
public Convert ( object value, Type targetType, object parameter, CultureInfo culture ) : object
value object The value produced by the binding source.
targetType System.Type The type of the binding target property.
parameter object The converter parameter to use.
culture System.Globalization.CultureInfo The culture to use in the converter.
return object
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if (targetType != typeof(bool))
            {
                throw new InvalidOperationException("The target must be a boolean");
            }

            return (int)value > System.Convert.ToInt32(parameter);
        }
IntGreaterParamToTrue