Update model-binding.md (#13212)

pull/13216/head
Rick Anderson 2019-07-09 19:54:17 -06:00 committed by GitHub
parent 0c9efb10b9
commit bb878baddc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -321,7 +321,7 @@ For targets that are collections of simple types, model binding looks for matche
For `Dictionary` targets, model binding looks for matches to *parameter_name* or *property_name*. If no match is found, it looks for one of the supported formats without the prefix. For example:
* Suppose the target parameter is a `Dictionary<string, string>` named `selectedCourses`:
* Suppose the target parameter is a `Dictionary<int, string>` named `selectedCourses`:
```csharp
public IActionResult OnPost(int? id, Dictionary<int, string> selectedCourses)