static void InitFactory() { if (s_factory != null) { return; } string assembly_name; string type_name = GetSymbolSupportType(out assembly_name); Type factoryType = Type.GetType(type_name + ", " + assembly_name, false); if (factoryType == null) { try { SR.Assembly assembly = SR.Assembly.LoadWithPartialName(assembly_name); factoryType = assembly.GetType(type_name); } catch {} } if (factoryType == null) { throw new NotSupportedException(); } s_factory = (ISymbolStoreFactory)Activator.CreateInstance(factoryType); }
static void InitFactory() { if (s_factory != null) return; Type factoryType = Type.GetType (OnMono () ? MonoSymbolSupport : DotNetSymbolSupport, true); s_factory = (ISymbolStoreFactory) Activator.CreateInstance (factoryType); }
static void InitFactory() { if (s_factory != null) { return; } Type factoryType = Type.GetType(OnMono() ? MonoSymbolSupport : DotNetSymbolSupport, true); s_factory = (ISymbolStoreFactory)Activator.CreateInstance(factoryType); }
static void InitFactory () { if (s_factory != null) return; string assembly_name; string type_name = GetSymbolSupportType (out assembly_name); Type factoryType = Type.GetType (type_name + ", " + assembly_name, false); if (factoryType == null) { try { SR.Assembly assembly = SR.Assembly.LoadWithPartialName (assembly_name); factoryType = assembly.GetType (type_name); } catch {} } if (factoryType == null) throw new NotSupportedException (); s_factory = (ISymbolStoreFactory) Activator.CreateInstance (factoryType); }