From 5b4dfe280019eb84ef1389c871e67c0a8da68bc6 Mon Sep 17 00:00:00 2001 From: Atsushi Eno Date: Thu, 17 Feb 2011 22:20:15 +0900 Subject: [PATCH] get out from NET_4_0. --- .../ConfigUtil.cs | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/mcs/class/System.ServiceModel/System.ServiceModel.Configuration/ConfigUtil.cs b/mcs/class/System.ServiceModel/System.ServiceModel.Configuration/ConfigUtil.cs index aec08d49c87..5f78ac88f1e 100644 --- a/mcs/class/System.ServiceModel/System.ServiceModel.Configuration/ConfigUtil.cs +++ b/mcs/class/System.ServiceModel/System.ServiceModel.Configuration/ConfigUtil.cs @@ -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; -- 2.25.1