@@ -22,7 +22,7 @@ public class ConfigFileProcessor
22
22
/// <param name="configs">Optional configuration items in the config file</param>
23
23
/// <param name="force">Forces compilation of all config items.</param>
24
24
/// <returns>A list of compiler results.</returns>
25
- public IEnumerable < CompilerResult > Process ( string configFile , IEnumerable < Config > configs = null , bool force = false )
25
+ public IEnumerable < CompilerResult > Process ( string configFile , Config [ ] configs = null , bool force = false )
26
26
{
27
27
if ( _processing . Contains ( configFile ) )
28
28
return Enumerable . Empty < CompilerResult > ( ) ;
@@ -36,8 +36,8 @@ public IEnumerable<CompilerResult> Process(string configFile, IEnumerable<Config
36
36
string directory = info . Directory . FullName ;
37
37
configs = configs ?? ConfigHandler . GetConfigs ( configFile ) ;
38
38
39
- if ( configs . Any ( ) )
40
- OnConfigProcessed ( configs . First ( ) , 0 , configs . Count ( ) ) ;
39
+ if ( configs . Length > 0 )
40
+ OnConfigProcessed ( configs . First ( ) , 0 , configs . Length ) ;
41
41
42
42
int i = 0 ;
43
43
foreach ( Config config in configs )
@@ -56,7 +56,7 @@ public IEnumerable<CompilerResult> Process(string configFile, IEnumerable<Config
56
56
list . Add ( ProcessConfig ( directory , config ) ) ;
57
57
}
58
58
59
- OnConfigProcessed ( config , i , configs . Count ( ) ) ;
59
+ OnConfigProcessed ( config , i , configs . Length ) ;
60
60
}
61
61
}
62
62
}
0 commit comments