关于[ASP.NET Core 5 Model Binding to C# 9 Record Types]的摘要:
ASP.NET Core 5 was just released and it includes a number of new features. Earlier I mentioned the built-in support for OpenAPI and Swagger UI via Swashbuckle in the new ASP.NET Core 5 Web API Project Template. Another new feature is improved model binding to support C# 9 record types. The C# 9 record type is perfect for use as data transfer objects where immutability is valuable. Using them for view models in ASP.NET Core MVC and for transferring data back and forth from an ASP.NET Core Web API seem like good applications for record types.
原文地址: https://www.davidhayden.me/blog/asp-net-core-5-model-binding-to-csharp-9-record-types