Removed class constraints.
Removed class constraints. This allows the use of structs.
This commit is contained in:
parent
024a9cdbdd
commit
b9ad9838ae
@ -63,7 +63,6 @@ namespace MackySoft.SerializeReferenceExtensions.Editor {
|
|||||||
Type baseType = property.GetManagedReferenceFieldType();
|
Type baseType = property.GetManagedReferenceFieldType();
|
||||||
var popup = new AdvancedTypePopup(
|
var popup = new AdvancedTypePopup(
|
||||||
TypeCache.GetTypesDerivedFrom(baseType).Where(p =>
|
TypeCache.GetTypesDerivedFrom(baseType).Where(p =>
|
||||||
p.IsClass &&
|
|
||||||
(p.IsPublic || p.IsNestedPublic) &&
|
(p.IsPublic || p.IsNestedPublic) &&
|
||||||
!p.IsAbstract &&
|
!p.IsAbstract &&
|
||||||
!p.IsGenericType &&
|
!p.IsGenericType &&
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user