Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

Remove DefaultValue support from model binding and do it only in the invoker for action parameters #2414

Closed
@rynowak

Description

@rynowak

MutableObjectModelBinder performs reflection to look up properties and their default values.

https://github.com/aspnet/Mvc/blob/dev/src/Microsoft.AspNet.Mvc.ModelBinding/Binders/MutableObjectModelBinder.cs#L298

We should move this into ModelMetadata so it can be cached, and so that the model binding system is more data driven.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions