Skip to content

how to write transforms value in class #2330

Answered by Tratcher
dantemayson asked this question in General
Discussion options

You must be logged in to vote

The raw syntax is a bit ugly, here's a helper that makes it easier:

public static RouteConfig WithTransformPathRouteValues(this RouteConfig route, [StringSyntax("Route")] PathString pattern)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@dantemayson
Comment options

@Tratcher
Comment options

Answer selected by karelz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Idea This issue is a high-level idea for discussion.
2 participants
Converted from issue

This discussion was converted from issue #2329 on November 15, 2023 16:41.