Skip to content
This repository was archived by the owner on May 9, 2023. It is now read-only.

Commit 8c6202c

Browse files
committed
Allow for inherited flags attributes
1 parent f203ae3 commit 8c6202c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CachedObjects/CacheObjectBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ private static CacheObjectBase GetCacheObjectImpl(object obj, MemberInfo memberI
135135
}
136136
else if (valueType.IsEnum)
137137
{
138-
if (valueType.GetCustomAttributes(typeof(FlagsAttribute), false) is object[] attributes && attributes.Length > 0)
138+
if (valueType.GetCustomAttributes(typeof(FlagsAttribute), true) is object[] attributes && attributes.Length > 0)
139139
{
140140
holder = new CacheEnumFlags();
141141
}

0 commit comments

Comments
 (0)