We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c803af7 commit 270cb28Copy full SHA for 270cb28
1 file changed
Orm/Xtensive.Orm/Orm/Linq/MemberCompilation/MemberCompilerProvider.cs
@@ -329,8 +329,7 @@ private static CompilerKey GetCompilerKey(MemberInfo member)
329
}
330
331
if (targetType.IsEnum) {
332
- var declaringType = canonicalMember.DeclaringType;
333
- canonicalMember = GetCanonicalMethod((MethodInfo) canonicalMember, targetType != declaringType ? declaringType.GetMethods() : targetType.GetMethods());
+ canonicalMember = GetCanonicalMethod((MethodInfo) canonicalMember, canonicalMember.DeclaringType.GetMethods());
334
335
336
return new CompilerKey(canonicalMember);
0 commit comments