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 29a5ac4 commit 80476edCopy full SHA for 80476ed
RetailCoder.VBE/Root/RubberduckModule.cs
@@ -294,8 +294,12 @@ private void ApplyAbstractFactoryConvention(IEnumerable<Assembly> assemblies)
294
private void BindCodeInspectionTypes(IEnumerable<Assembly> assemblies)
295
{
296
var inspections = assemblies
297
- .SelectMany(a => a.GetTypes().Where(type => type.IsClass && !type.IsAbstract && type.GetInterfaces().Contains(typeof(IInspection))))
298
- .ToList();
+ .SelectMany(a => a.GetTypes()
+ .Where(type => type.IsClass
299
+ && !type.IsAbstract
300
+ && type.GetInterfaces().Contains(typeof(IInspection))
301
+ )
302
+ );
303
304
// multibinding for IEnumerable<IInspection> dependency
305
foreach(var inspection in inspections)
0 commit comments