Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance model binding support for ASPNET core #7

Open
onionhammer opened this issue Feb 8, 2022 · 0 comments
Open

Enhance model binding support for ASPNET core #7

onionhammer opened this issue Feb 8, 2022 · 0 comments

Comments

@onionhammer
Copy link
Contributor

Currently in ASP.NET Core, writing a generic IModelBinderProvider is difficult, because there is no way to generically constrain that T has GetAllTypes or GetType static methods. These two helper methods allow the caller to understand all the possible supported types and get a type from a passed enum respectively.

Proposal: Declare and a known interface with GetAllTypes and GetTypes then have each polymorpyhic class inherit that interface

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant