public override int GetHashCode() { var result = Name.GetHashCode(); if (Alias != null) { result ^= Alias.GetHashCode(); } if (Arguments != null) { result = Arguments.Aggregate(result, (x, y) => x ^ y.GetHashCode()); } if (Directives != null) { result = Directives.Aggregate(result, (x, y) => x ^ y.GetHashCode()); } if (SelectionSet != null) { result = SelectionSet.Aggregate(result, (x, y) => x ^ y.GetHashCode()); } return(result); }
public override int GetHashCode() { var result = OperationType.GetHashCode(); if (Name != null) { result ^= Name.GetHashCode(); } if (VariableDefinitions != null) { result = VariableDefinitions.Aggregate(result, (x, y) => x ^ y.GetHashCode()); } if (Directives != null) { result = Directives.Aggregate(result, (x, y) => x ^ y.GetHashCode()); } if (SelectionSet != null) { result = SelectionSet.Aggregate(result, (x, y) => x ^ y.GetHashCode()); } return(result); }
public override int GetHashCode() { var result = FragmentName.GetHashCode() ^ TypeCondition.GetHashCode(); if (Directives != null) { result = Directives.Aggregate(result, (x, y) => x ^ y.GetHashCode()); } return(SelectionSet.Aggregate(result, (x, y) => x ^ y.GetHashCode())); }