Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/System/System.ComponentModel/TypeDescriptor.cs')
-rw-r--r--mcs/class/System/System.ComponentModel/TypeDescriptor.cs43
1 files changed, 0 insertions, 43 deletions
diff --git a/mcs/class/System/System.ComponentModel/TypeDescriptor.cs b/mcs/class/System/System.ComponentModel/TypeDescriptor.cs
deleted file mode 100644
index f3d9af4b361..00000000000
--- a/mcs/class/System/System.ComponentModel/TypeDescriptor.cs
+++ /dev/null
@@ -1,43 +0,0 @@
-//
-// System.ComponentModel.TypeDescriptor
-//
-// Authors:
-// Gonzalo Paniagua Javier (gonzalo@ximian.com)
-//
-// (C) 2002 Ximian, Inc (http://www.ximian.com)
-//
-
-using System;
-
-namespace System.ComponentModel
-{
-
-[MonoTODO("Only implemented the minimal features needed to use ColorConverter")]
-public sealed class TypeDescriptor
-{
- public static TypeConverter GetConverter (Type type)
- {
- object [] attrs = type.GetCustomAttributes (false);
- string converter_name = null;
- foreach (object o in attrs){
- if (o is TypeConverterAttribute){
- TypeConverterAttribute tc = (TypeConverterAttribute) o;
- converter_name = tc.ConverterTypeName;
- break;
- }
- }
-
- if (converter_name == null)
- return null;
-
- object converter = null;
- try {
- converter = Activator.CreateInstance (Type.GetType (converter_name));
- } catch (Exception){
- }
-
- return converter as TypeConverter;
- }
-}
-}
-