Skip to content

Commit 4d8ec54

Browse files
authored
SimpleTypeModelBinder.CheckModel: add API doc (#39982)
There is no documentation to inherit from.
1 parent 543ed1b commit 4d8ec54

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Mvc/Mvc.Core/src/ModelBinding/Binders/SimpleTypeModelBinder.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,11 @@ public Task BindModelAsync(ModelBindingContext bindingContext)
115115
}
116116
}
117117

118-
/// <inheritdoc/>
118+
/// <summary>
119+
/// If the <paramref name="model" /> is <see langword="null" />, verifies that it is allowed to be <see langword="null" />,
120+
/// otherwise notifies the <see cref="P:ModelBindingContext.ModelState" /> about the invalid <paramref name="valueProviderResult" />.
121+
/// Sets the <see href="P:ModelBindingContext.Result" /> to the <paramref name="model" /> if successful.
122+
/// </summary>
119123
protected virtual void CheckModel(
120124
ModelBindingContext bindingContext,
121125
ValueProviderResult valueProviderResult,

0 commit comments

Comments
 (0)