Use Jit recongised, standard loop construct
For bounds check elimination.
This commit is contained in:
parent
8c71357e70
commit
d61586c6a1
|
|
@ -27,7 +27,7 @@ namespace Microsoft.AspNet.Hosting.Startup
|
|||
var serviceProvider = builder.ApplicationServices;
|
||||
var parameterInfos = MethodInfo.GetParameters();
|
||||
var parameters = new object[parameterInfos.Length];
|
||||
for (var index = 0; index != parameterInfos.Length; ++index)
|
||||
for (var index = 0; index < parameterInfos.Length; index++)
|
||||
{
|
||||
var parameterInfo = parameterInfos[index];
|
||||
if (parameterInfo.ParameterType == typeof(IApplicationBuilder))
|
||||
|
|
@ -54,4 +54,4 @@ namespace Microsoft.AspNet.Hosting.Startup
|
|||
MethodInfo.Invoke(instance, parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue