get out from NET_4_0.
authorAtsushi Eno <atsushi@ximian.com>
Thu, 17 Feb 2011 13:20:15 +0000 (22:20 +0900)
committerAtsushi Eno <atsushi@ximian.com>
Thu, 17 Feb 2011 13:20:15 +0000 (22:20 +0900)
mcs/class/System.ServiceModel/System.ServiceModel.Configuration/ConfigUtil.cs

index aec08d49c876bac9913899defa0d20b0bf9ab206..5f78ac88f1e98c5188b68a5b92abb906637a41a6 100644 (file)
@@ -98,6 +98,17 @@ namespace System.ServiceModel.Configuration
                        return b;
                }
 
+               public static Type GetTypeFromConfigString (string name)
+               {
+                       Type type = Type.GetType (name);
+                       if (type != null)
+                               return type;
+                       foreach (var ass in AppDomain.CurrentDomain.GetAssemblies ())
+                               if ((type = ass.GetType (name)) != null)
+                                       return type;
+                       return null;
+               }
+
 #if NET_4_0
                public static Binding GetBindingByProtocolMapping (Uri address)
                {
@@ -131,17 +142,6 @@ namespace System.ServiceModel.Configuration
                        return inst;
                }
 
-               public static Type GetTypeFromConfigString (string name)
-               {
-                       Type type = Type.GetType (name);
-                       if (type != null)
-                               return type;
-                       foreach (var ass in AppDomain.CurrentDomain.GetAssemblies ())
-                               if ((type = ass.GetType (name)) != null)
-                                       return type;
-                       return null;
-               }
-
                public static ServiceEndpoint ConfigureStandardEndpoint (ContractDescription cd, ServiceEndpointElement element)
                {
                        string kind = element.Kind;