You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by sy...@apache.org on 2016/09/01 21:29:19 UTC
[4/6] lucenenet git commit: Only loading non-Microsoft Assemblies to
search for public types
Only loading non-Microsoft Assemblies to search for public types
Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/f66eeb6d
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/f66eeb6d
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/f66eeb6d
Branch: refs/heads/master
Commit: f66eeb6d9bac57fa4914a65fcc30919a97b64b5f
Parents: e8c4963
Author: Connie Yau <co...@microsoft.com>
Authored: Sun Aug 28 19:47:46 2016 -0700
Committer: Connie Yau <co...@microsoft.com>
Committed: Thu Sep 1 10:28:45 2016 -0700
----------------------------------------------------------------------
src/Lucene.Net.Core/Util/SPIClassIterator.cs | 25 -----------------------
1 file changed, 25 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/f66eeb6d/src/Lucene.Net.Core/Util/SPIClassIterator.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Util/SPIClassIterator.cs b/src/Lucene.Net.Core/Util/SPIClassIterator.cs
index 50f2eb0..a5560f3 100644
--- a/src/Lucene.Net.Core/Util/SPIClassIterator.cs
+++ b/src/Lucene.Net.Core/Util/SPIClassIterator.cs
@@ -92,31 +92,6 @@ namespace Lucene.Net.Util
{
// swallow
}
-
- foreach (var assemblyName in loadedAssembly.GetReferencedAssemblies())
- {
- try
- {
- var assembly = Assembly.Load(assemblyName);
-
- foreach (var type in assembly.GetTypes())
- {
- try
- {
- if (IsInvokableSubclassOf<S>(type))
- types.Add(type);
- }
- catch
- {
- // swallow
- }
- }
- }
- catch
- {
- // swallow
- }
- }
}
}