dotnet / dotnet/aspnetcore

Why is `ComplexObjectModelBinder` sealed?

Open
#60,284 2 comments 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

The `ComplexObjectModelBinder` is the only binder under _src/Mvc/Mvc.Core/src/ModelBinding/Binders_ that is sealed and I would like to understand the reasons.

People seem to keep running into this (#48673 #47039 #46775 #33545 and several on SO), with the last one suggesting to copy the code even though it was pointed out it it relies on other internal types.

The question was asked in #46775 but a workaround was sought instead, hence the question - why was this binder made sealed?

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.