Allow for inherited flags attributes

This commit is contained in:
sinaioutlander 2020-09-23 19:42:37 +10:00
parent f203ae37fc
commit 8c6202c194

View File

@ -135,7 +135,7 @@ namespace Explorer
} }
else if (valueType.IsEnum) else if (valueType.IsEnum)
{ {
if (valueType.GetCustomAttributes(typeof(FlagsAttribute), false) is object[] attributes && attributes.Length > 0) if (valueType.GetCustomAttributes(typeof(FlagsAttribute), true) is object[] attributes && attributes.Length > 0)
{ {
holder = new CacheEnumFlags(); holder = new CacheEnumFlags();
} }