dotnet / dotnet/aspnetcore

Consider the impact of C# 11's required properties on model binding / validation

Open
#40,099 4 comments 0 reactions 0 assignees View on GitHub
area-mvc
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 10h
Merged PRs (30d)
281

Description

Feature: https://github.com/dotnet/csharplang/blob/main/proposals/required-members.md

Using this keyword appears as an attribute in the generated code. We could envision reading it and treated it as the equivalent of `BindRequiredAttribute` (this property must have a value).

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.