Skip to content

v1.0.2

Compare
Choose a tag to compare
@daviddotcs daviddotcs released this 26 Mar 10:41
· 190 commits to main since this release
  • Fixes incorrect suggested return type in XML documentation for Redirect extension methods.

  • Adds missing source link for NuGet package.

  • RouteValue indexers now fall back to a nullable disabled context when there are multiple properties or parameters with incompatible nullable reference types. This avoids requiring the null-forgiving operator in those cases.

E.g.; Source class:

public class ProductsController : Controller
{
  public IActionResult Index(IEnumerable<string?> x, IEnumerable<string>? y) => View();
}

Resulting indexer on the associated RouteValues class:

#nullable disable
  public IEnumerable<string> this[RouteKey<ParameterData, IEnumerable<string>> key] { set => RouteValues[key.Name] = value; }
#nullable restore

Full Changelog: v1.0.1...v1.0.2