Skip to content

Commit

Permalink
[#227] [edit] change to ExpandoObject according to benchmark and back…
Browse files Browse the repository at this point in the history
…ward compatibility
  • Loading branch information
i4004 committed Jan 28, 2024
1 parent 82e2ab8 commit a8712a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Simplify.Web/Routing/RouteMatcher.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Dynamic;
using System.Linq;

namespace Simplify.Web.Routing;
Expand Down Expand Up @@ -37,7 +38,7 @@ public IRouteMatchResult Match(string? currentPath, string? controllerPath)
if (currentPathItems.Length != controllerPathParsed.Items.Count)
return new RouteMatchResult();

IDictionary<string, object> routeParameters = new Dictionary<string, object>()!;
IDictionary<string, object> routeParameters = new ExpandoObject()!;

for (var i = 0; i < controllerPathParsed.Items.Count; i++)
{
Expand Down

0 comments on commit a8712a5

Please sign in to comment.