diff options
Diffstat (limited to 'mcs/class/System/System.ComponentModel/StringConverter.cs')
-rw-r--r-- | mcs/class/System/System.ComponentModel/StringConverter.cs | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/mcs/class/System/System.ComponentModel/StringConverter.cs b/mcs/class/System/System.ComponentModel/StringConverter.cs deleted file mode 100644 index 351a00ea11c..00000000000 --- a/mcs/class/System/System.ComponentModel/StringConverter.cs +++ /dev/null @@ -1,41 +0,0 @@ -// -// System.ComponentModel.StringConverter -// -// Authors: -// Gonzalo Paniagua Javier (gonzalo@ximian.com) -// -// (C) 2002 Ximian, Inc (http://www.ximian.com) -// - -using System; -using System.Globalization; - -namespace System.ComponentModel { - -public class StringConverter : TypeConverter -{ - public StringConverter () - { - } - - public override bool CanConvertFrom (ITypeDescriptorContext context, Type sourceType) - { - if (sourceType == typeof(String)) - return true; - - return base.CanConvertFrom (context, sourceType); - } - - public override object ConvertFrom (ITypeDescriptorContext context, CultureInfo culture, object value) - { - if (value == null) - return String.Empty; - - if (value is string) - return (string) value; - - return base.ConvertFrom (context, culture, value); - } -} -} - |