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.

Move call to validate constructor in ComplexTypeModelBinder into CreateModel #5801

@rynowak

Description

@rynowak

See commit here: 842d661

This check should be in CanCreateModel so that it will be skipped for someone who subclassed ComplexTypeModelBinder

Also, this change adds runtime reflection to pretty hot codepath just for validation purposes. We can do this one time per-instance by moving it to the inside of this block:

if (_modelCreator == null) { } 

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions