1 write to Literals
Microsoft.AspNetCore.Routing (1)
Tree\UrlMatchingNode.cs (1)
31
Literals
= new Dictionary<string, UrlMatchingNode>(StringComparer.OrdinalIgnoreCase);
15 references to Literals
Microsoft.AspNetCore.Routing (4)
Tree\TreeEnumerator.cs (2)
92
if (next.
Literals
.Count > 0)
95
if (next.
Literals
.TryGetValue(_tokenizer[next.Depth].Value, out var node))
Tree\UrlMatchingTree.cs (2)
103
if (!current.
Literals
.TryGetValue(part.Text, out var next))
106
current.
Literals
.Add(part.Text, next);
Microsoft.AspNetCore.Routing.Tests (11)
Tree\TreeRouteBuilderTest.cs (11)
89
var firstSegment = Assert.Single(matchingTree.Root.
Literals
);
96
var thirdSegment = Assert.Single(secondSegment.
Literals
);
121
var firstSegment = Assert.Single(matchingTree.Root.
Literals
);
128
var thirdSegment = Assert.Single(secondSegment.
Literals
);
136
var fifthSegment = Assert.Single(fourthSegment.
Literals
);
165
var firstSegment = Assert.Single(matchingTree.Root.
Literals
);
172
var thirdSegment = Assert.Single(secondSegment.
Literals
);
197
var firstSegment = Assert.Single(matchingTree.Root.
Literals
);
204
var thirdSegment = Assert.Single(secondSegment.
Literals
);
229
var firstSegment = Assert.Single(matchingTree.Root.
Literals
);
236
var thirdSegment = Assert.Single(secondSegment.
Literals
);