aspnetcore icon indicating copy to clipboard operation
aspnetcore copied to clipboard

Tuples are not supported by Url.RouteUrl()

Open mkorsukov opened this issue 5 months ago • 0 comments

Not sure if this is expected or not, but the Url.RouteUrl call in ASP.NET Core Razor view doesn't support Tuples.

VS Code: v1.92.2 O# extension: v2.39.29

@using Filter = (int? A, int? B, int? C);

<p>@(Url.RouteUrl(new Filter { A = 1, B = 2, C = null }))</p>

It renders the current URL without any parameters specified.

mkorsukov avatar Aug 27 '24 20:08 mkorsukov