We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dccdc16 commit 3b1bbe9Copy full SHA for 3b1bbe9
1 file changed
QuickLook/PluginManager.cs
@@ -92,11 +92,12 @@ private void LoadPlugins(string folder)
92
{
93
try
94
95
- (from t in Assembly.LoadFrom(lib).GetExportedTypes()
96
- where !t.IsInterface && !t.IsAbstract
97
- where typeof(IViewer).IsAssignableFrom(t)
98
- select t).ToList()
99
- .ForEach(type => LoadedPlugins.Add(type.CreateInstance<IViewer>()));
+ Assembly.LoadFrom(lib)
+ .GetExportedTypes()
+ .Where(t => !t.IsInterface && !t.IsAbstract
+ && typeof(IViewer).IsAssignableFrom(t))
+ .ToArray()
100
+ .ForEach(t => LoadedPlugins.Add(t.CreateInstance<IViewer>()));
101
}
102
// 0x80131515: ERROR_ASSEMBLY_FILE_BLOCKED - Windows blocked the assembly due to security policy
103
catch (FileLoadException ex) when (ex.HResult == unchecked((int)0x80131515) && SettingHelper.IsPortableVersion())
0 commit comments