SubclassSelector is now support a concrete base class.

This commit is contained in:
mackysoft 2022-04-10 13:37:51 +09:00
parent 782fe29719
commit 9061c68ab7

View File

@ -64,7 +64,7 @@ namespace MackySoft.SerializeReferenceExtensions.Editor {
Type baseType = ManagedReferenceUtility.GetType(managedReferenceFieldTypename);
var popup = new AdvancedTypePopup(
TypeCache.GetTypesDerivedFrom(baseType).Where(p =>
TypeCache.GetTypesDerivedFrom(baseType).Append(baseType).Where(p =>
(p.IsPublic || p.IsNestedPublic) &&
!p.IsAbstract &&
!p.IsGenericType &&