!2367 fix(#I4SK0X): throw exception in EditorForm component cause by IsCheckboxList method

* chore: bump version beta10
* fix: 修复泛型类判断导致报异常错误
This commit is contained in:
Argo 2022-01-30 02:53:34 +00:00
parent 71ad4212fc
commit 97c3e181af
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">
<PropertyGroup>
<Version>6.2.9-beta09</Version>
<Version>6.2.9-beta10</Version>
</PropertyGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net5.0'">

View File

@ -430,7 +430,7 @@ public static class Utility
var ret = false;
if (componentType != null)
{
ret = componentType.GetGenericTypeDefinition() == typeof(CheckboxList<>);
ret = componentType.IsGenericType && componentType.GetGenericTypeDefinition() == typeof(CheckboxList<>);
}
if (!ret)
{