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

Convert() public method

Converts the specified value.
The target must be a boolean
public Convert ( object value, Type targetType, object parameter, CultureInfo culture ) : object
value object The value.
targetType System.Type The target type.
parameter object The parameter.
culture System.Globalization.CultureInfo The culture.
return object
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if (value == null || parameter == null)
            {
                return false;
            }

            return ((string)value).StartsWith((string)parameter);
        }
StringStartsWithParamToBoolConverter