Exemplo n.º 1
0
        public bool Equals(TypeConditionRuleEmbedded?other)
        {
            if (other == null)
            {
                return(false);
            }

            return(TypeCondition.Equals(other.TypeCondition) &&
                   Allowed.Equals(other.Allowed));
        }
Exemplo n.º 2
0
        public override bool Equals(object obj)
        {
            if (obj is FragmentDefinition fragmentDefinition)
            {
                return
                    (FragmentName.Equals(fragmentDefinition.FragmentName) &&
                     TypeCondition.Equals(fragmentDefinition.TypeCondition) &&
                     (
                         Directives == null &&
                         fragmentDefinition.Directives == null ||
                         Directives != null &&
                         fragmentDefinition.Directives != null &&
                         Directives.SequenceEqual(fragmentDefinition.Directives)
                     ) &&
                     SelectionSet.SequenceEqual(fragmentDefinition.SelectionSet));
            }

            return(base.Equals(obj));
        }
Exemplo n.º 3
0
        public override bool Equals(object obj)
        {
            if (obj is InlineFragment inlineFragment)
            {
                return
                    ((
                         TypeCondition == null &&
                         inlineFragment.TypeCondition == null ||
                         TypeCondition != null &&
                         inlineFragment.TypeCondition != null &&
                         TypeCondition.Equals(inlineFragment.TypeCondition)
                         ) &&
                     (
                         Directives == null &&
                         inlineFragment.Directives == null ||
                         Directives != null &&
                         inlineFragment.Directives != null &&
                         Directives.SequenceEqual(inlineFragment.Directives)
                     ) &&
                     SelectionSet.SequenceEqual(inlineFragment.SelectionSet));
            }

            return(base.Equals(obj));
        }
Exemplo n.º 4
0
 public bool Equals(TypeConditionRuleEmbedded other)
 {
     return(TypeCondition.Equals(other.TypeCondition) &&
            Allowed.Equals(other.Allowed));
 }