Channel9Downloader.Converters.DownloadPriorityToBoolConverter.Convert C# (CSharp) Method

Convert() public method

Converts the download priority to a bool 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)
        {
            var priorityValue = (DownloadPriority)value;
            var priorityParameter = (DownloadPriority)parameter;

            return priorityValue == priorityParameter;
        }
DownloadPriorityToBoolConverter