コード例 #1
0
        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()));
        }
コード例 #2
0
        public override int GetHashCode()
        {
            var result = FragmentName.GetHashCode();

            if (Directives != null)
            {
                result = Directives.Aggregate(result, (x, y) => x ^ y.GetHashCode());
            }

            return(result);
        }