Add structs to reference picker

This commit is contained in:
VladV 2023-03-12 01:12:08 +04:00
parent 51d7e7d474
commit abcd8b1d18

View File

@ -47,7 +47,7 @@ namespace TriInspector.Utilities
.AllNonAbstractTypes
.Where(type => !typeof(Object).IsAssignableFrom(type))
.Where(type => _property.FieldType.IsAssignableFrom(type))
.Where(type => type.GetConstructor(Type.EmptyTypes) != null)
.Where(type => type.IsValueType || type.GetConstructor(Type.EmptyTypes) != null)
.ToList();
var groupByNamespace = types.Count > 20;