diff --git a/src/System.Management.Automation/engine/runtime/Binding/Binders.cs b/src/System.Management.Automation/engine/runtime/Binding/Binders.cs index 3aaf877e88..cbccd082a7 100644 --- a/src/System.Management.Automation/engine/runtime/Binding/Binders.cs +++ b/src/System.Management.Automation/engine/runtime/Binding/Binders.cs @@ -1178,7 +1178,7 @@ namespace System.Management.Automation.Language public bool Equals(PSInvokeDynamicMemberBinderKeyType x, PSInvokeDynamicMemberBinderKeyType y) { return x.Item1.Equals(y.Item1) && - x.Item2 == null ? y.Item2 == null : x.Item2.Equals(y.Item2) && + ((x.Item2 == null) ? y.Item2 == null : x.Item2.Equals(y.Item2)) && x.Item3 == y.Item3 && x.Item4 == y.Item4 && x.Item5 == y.Item5;