Skip to content

Commit 2c26dd0

Browse files
committed
Fix ExtractAttributes() logic
1 parent 8327f67 commit 2c26dd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Orm/Xtensive.Orm/Reflection/AttributeHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ private static IEnumerable<Attribute> ExtractAttributes((MemberInfo member, Type
104104
}
105105
}
106106

107-
if ((options & AttributeSearchOptions.InheritFromAllBase) != 0
107+
if ((options & AttributeSearchOptions.InheritFromAllBase) == AttributeSearchOptions.InheritFromAllBase
108108
&& member.DeclaringType != WellKnownTypes.Object
109109
&& member.GetBaseMember() is MemberInfo bm2) {
110110
attributes.AddRange(GetAttributes(bm2, attributeType, options));

0 commit comments

Comments
 (0)