aspnet / Mvc

[Archived] ASP.NET Core MVC is a model view controller framework for building dynamic web sites with clean separation of concerns, including the merged MVC, Web API, and Web Pages w/ Razor. Project moved to https://github.com/aspnet/AspNetCore
Apache License 2.0
5.62k stars 2.14k forks source link

ValidationProblemDetails.Errors xmldoc comment states 'Gets or sets', but property only has getter. #8645

Closed ascott18 closed 6 years ago

ascott18 commented 6 years ago

Is this a Bug or Feature request?:

Bug

Steps to reproduce (preferably a link to a GitHub repo with a repro project):

N/A

Description of the problem:

https://github.com/aspnet/Mvc/blob/release/2.2/src/Microsoft.AspNetCore.Mvc.Core/ValidationProblemDetails.cs#L69

The doc comment states "Gets or Sets", but only a getter exists.

It would be nice if this property did indeed have a setter so I could replace the dictionary with one that I already have in memory rather than needing to copy over the contents of my existing dictionary key-by-key into the one created in the property initializer (for when I'm starting with something other than a ModelStateDictionary)

Version of Microsoft.AspNetCore.Mvc or Microsoft.AspNetCore.App or Microsoft.AspNetCore.All:

2.1.2