Extract all converters into separate folder

This commit is contained in:
Yaroslav Zyubanov
2014-05-24 14:06:09 +06:00
parent d748e34d7e
commit 9eefd8839c
6 changed files with 116 additions and 99 deletions

View File

@@ -0,0 +1,18 @@
using System;
using System.Globalization;
namespace Wox.Converters
{
public class StringEmptyConverter : ConvertorBase<StringEmptyConverter>
{
public override object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
return string.IsNullOrEmpty((string)value) ? parameter : value;
}
public override object ProvideValue(IServiceProvider serviceProvider)
{
return this;
}
}
}