aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.SharedUI/Converters/EmptyStringToNullConverter.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/Tango.SharedUI/Converters/EmptyStringToNullConverter.cs')
-rw-r--r--Software/Visual_Studio/Tango.SharedUI/Converters/EmptyStringToNullConverter.cs31
1 files changed, 0 insertions, 31 deletions
diff --git a/Software/Visual_Studio/Tango.SharedUI/Converters/EmptyStringToNullConverter.cs b/Software/Visual_Studio/Tango.SharedUI/Converters/EmptyStringToNullConverter.cs
deleted file mode 100644
index 8d62178c7..000000000
--- a/Software/Visual_Studio/Tango.SharedUI/Converters/EmptyStringToNullConverter.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Globalization;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.Windows.Data;
-
-namespace Tango.SharedUI.Converters
-{
- public class EmptyStringToNullConverter : IValueConverter
- {
- public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
- {
- return value;
- }
-
- public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
- {
- if (value != null)
- {
- if (String.IsNullOrWhiteSpace(value.ToString()))
- {
- return null;
- }
- }
-
- return value;
- }
- }
-}