@@ -20,9 +20,9 @@ internal class AssemblyManager
20
20
// therefore this should be a ConcurrentDictionary
21
21
//
22
22
// WARNING: Dangerous if cross-app domain usage is ever supported
23
- // Reusing the dictionary with assemblies accross multiple initializations is problematic.
24
- // Loading happens from CurrentDomain (see line 53). And if the first call is from AppDomain that is later unloaded,
25
- // than it can end up referring to assemblies that are already unloaded (default behavior after unload appDomain -
23
+ // Reusing the dictionary with assemblies accross multiple initializations is problematic.
24
+ // Loading happens from CurrentDomain (see line 53). And if the first call is from AppDomain that is later unloaded,
25
+ // than it can end up referring to assemblies that are already unloaded (default behavior after unload appDomain -
26
26
// unless LoaderOptimization.MultiDomain is used);
27
27
// So for multidomain support it is better to have the dict. recreated for each app-domain initialization
28
28
private static ConcurrentDictionary < string , ConcurrentDictionary < Assembly , string > > namespaces =
@@ -365,25 +365,6 @@ public static List<string> GetNames(string nsname)
365
365
return names ;
366
366
}
367
367
368
- /// <summary>
369
- /// Returns the System.Type object for a given qualified name,
370
- /// looking in the currently loaded assemblies for the named
371
- /// type. Returns null if the named type cannot be found.
372
- /// </summary>
373
- [ Obsolete ( "Use LookupTypes and handle name conflicts" ) ]
374
- public static Type LookupType ( string qname )
375
- {
376
- foreach ( Assembly assembly in assemblies )
377
- {
378
- Type type = assembly . GetType ( qname ) ;
379
- if ( type != null && IsExported ( type ) )
380
- {
381
- return type ;
382
- }
383
- }
384
- return null ;
385
- }
386
-
387
368
/// <summary>
388
369
/// Returns the <see cref="Type"/> objects for the given qualified name,
389
370
/// looking in the currently loaded assemblies for the named
0 commit comments