dotnet / dotnet/aspnetcore

Class docs for UrlHelperExtensions are incomplete

Open
#54,465 1 comment 0 reactions 0 assignees View on GitHub
area-mvc
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 6h
Merged PRs (30d)
290

Description

I use the `Url.Page` methods from [`UrlHelperExtensions`](https://github.com/dotnet/aspnetcore/blob/610fe433e07b32ed451ed99d07df63be47c29050/src/Mvc/Mvc.Core/src/UrlHelperExtensions.cs). They return `string?`, which trigger analysers in my code (it's the same with the other methods: `Action`, `ActionLink`, `Page`, `PageLink`, `RouteUrl`).

When can those methods return null? The class docs do not say.

(Asked on [SO](https://stackoverflow.com/q/78134624/9971404) without resolution.)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.