Filter out generic invoke methods in ViewComponents
This commit is contained in:
parent
047def1aaf
commit
63d7d35bd2
|
|
@ -57,7 +57,7 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Internal
|
|||
StringComparison.Ordinal));
|
||||
|
||||
var tagHelperDescriptors = viewComponentDescriptors
|
||||
.Where(d => !d.Parameters.Any(p => p.ParameterType.GetTypeInfo().ContainsGenericParameters))
|
||||
.Where(d => !d.MethodInfo.ContainsGenericParameters)
|
||||
.Select(viewComponentDescriptor => CreateDescriptor(viewComponentDescriptor));
|
||||
|
||||
return tagHelperDescriptors;
|
||||
|
|
|
|||
Loading…
Reference in New Issue