File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -131,6 +131,11 @@ public static List<IExecutableCheck<PortableExecutable>> PortableExecutableCheck
131131 /// </summary>
132132 private static List < T > InitCheckClasses < T > ( Assembly assembly )
133133 {
134+ // Get information from the type param
135+ string ? interfaceName = typeof ( T ) . FullName ;
136+ if ( interfaceName == null )
137+ return [ ] ;
138+
134139 // If not all types can be loaded, use the ones that could be
135140 Type ? [ ] assemblyTypes ;
136141 try
@@ -142,11 +147,6 @@ private static List<T> InitCheckClasses<T>(Assembly assembly)
142147 assemblyTypes = rtle . Types ?? [ ] ;
143148 }
144149
145- // Get information from the type param
146- string ? interfaceName = typeof ( T ) . FullName ;
147- if ( interfaceName == null )
148- return [ ] ;
149-
150150 // Loop through all types
151151 List < T > classTypes = [ ] ;
152152 foreach ( Type ? type in assemblyTypes )
You can’t perform that action at this time.
0 commit comments