Sisk

Method

UrlBuilder.TransformSegments

Namespace
Sisk.Core.Helpers
Assembly
Sisk.Core.dll

TransformSegments(Func<string, string?>) #

Applies a transformation function to each URL segment.

C#
public UrlBuilder TransformSegments(Func<string, string?> fn)

Parameters #

fn Func<string, string?>

A function that takes a segment as input and returns the transformed segment, or null to remove the segment.

Returns #

UrlBuilder

The current UrlBuilder instance, with the segments transformed.

Type to search the documentation and the API reference.