From 8c6202c1942a657cfae4187a7882e297772b5c0f Mon Sep 17 00:00:00 2001 From: sinaioutlander <49360850+sinaioutlander@users.noreply.github.com> Date: Wed, 23 Sep 2020 19:42:37 +1000 Subject: [PATCH] Allow for inherited flags attributes --- src/CachedObjects/CacheObjectBase.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CachedObjects/CacheObjectBase.cs b/src/CachedObjects/CacheObjectBase.cs index 763918d..9646e37 100644 --- a/src/CachedObjects/CacheObjectBase.cs +++ b/src/CachedObjects/CacheObjectBase.cs @@ -135,7 +135,7 @@ namespace Explorer } 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(); }