31 references to Count
Microsoft.AspNetCore.Mvc.Core (3)
Routing\ActionConstraintMatcherPolicy.cs (2)
83for (var i = 0; i < candidateSet.Count; i++) 112for (var i = 0; i < candidateSet.Count; i++)
Routing\DynamicControllerEndpointMatcherPolicy.cs (1)
69for (var i = 0; i < candidates.Count; i++)
Microsoft.AspNetCore.Mvc.Core.Test (1)
Routing\DynamicControllerEndpointMatcherPolicyTest.cs (1)
430Assert.Equal(2, candidates.Count);
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (2)
PageLoaderMatcherPolicy.cs (2)
60for (var i = 0; i < candidates.Count; i++) 101for (var i = index + 1; i < candidates.Count; i++)
Microsoft.AspNetCore.Mvc.RazorPages (1)
Infrastructure\DynamicPageEndpointMatcherPolicy.cs (1)
71for (var i = 0; i < candidates.Count; i++)
Microsoft.AspNetCore.Mvc.RazorPages.Test (2)
Infrastructure\DynamicPageEndpointMatcherPolicyTest.cs (2)
373Assert.Equal(1, candidates.Count); 430Assert.Equal(2, candidates.Count);
Microsoft.AspNetCore.Routing (9)
Matching\AcceptsMatcherPolicy.cs (1)
56for (var i = 0; i < candidates.Count; i++)
Matching\CandidateSet.cs (5)
91if ((uint)index >= Count) 112if ((uint)index >= Count) 135if ((uint)index >= Count) 168if ((uint)index >= Count) 211if ((uint)index >= Count)
Matching\HostMatcherPolicy.cs (1)
76for (var i = 0; i < candidates.Count; i++)
Matching\HttpMethodMatcherPolicy.cs (1)
94for (var i = 0; i < candidates.Count; i++)
Matching\NegotiationMatcherPolicy.cs (1)
98for (var i = 0; i < candidates.Count; i++)
Microsoft.AspNetCore.Routing.Tests (13)
Matching\CandidateSetTest.cs (10)
31for (var i = 0; i < candidateSet.Count; i++) 60for (var i = 0; i < candidateSet.Count; i++) 93for (var i = 0; i < candidateSet.Count; i++) 135for (var i = 1; i < candidateSet.Count; i++) 176Assert.Equal(12, candidateSet.Count); 185for (var i = 3; i < candidateSet.Count; i++) 226Assert.Equal(12, candidateSet.Count); 242for (var i = 8; i < candidateSet.Count; i++) 283Assert.Equal(12, candidateSet.Count); 356for (var i = 0; i < candidateSet.Count; i++)
Matching\DfaMatcherTest.cs (3)
651Assert.Equal(2, cs.Count); 697Assert.Equal(2, cs.Count); 744Assert.Equal(2, cs.Count);