We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5902afc commit f5fdc0aCopy full SHA for f5fdc0a
src/Mvc/Mvc.Core/src/ModelBinderOfTAttribute.cs
@@ -11,7 +11,7 @@ namespace Microsoft.AspNetCore.Mvc;
11
/// This is a derived generic variant of the <see cref="ModelBinderAttribute"/>.
12
/// Ensure that only one instance of either attribute is provided on the target.
13
/// </remarks>
14
-public class ModelBinderAttribute<TBinder> : ModelBinderAttribute
+public class ModelBinderAttribute<TBinder> : ModelBinderAttribute where TBinder : IModelBinder
15
{
16
/// <summary>
17
/// Initializes a new instance of <see cref="ModelBinderAttribute"/>.
0 commit comments