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)
{
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;