Channel9Downloader.Converters.SelectedVideoToSummaryConverter.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)
        {
            var rssItem = value as RssItem;

            if (rssItem == null)
            {
                return "If you select something, I can tell you more about it...";
            }

            return rssItem.Summary;
        }
SelectedVideoToSummaryConverter