Exemple #1
0
        public override int GetHashCode()
        {
            var code = 0;

            code ^= _aggregateFunction.GetHashCode();
            code ^= _attributeModel.GetHashCode();
            code ^= _transformationFunction.GetHashCode();
            code ^= _binSize.GetHashCode();
            code ^= _scaleFunction.GetHashCode();
            //code ^= this._sortMode.GetHashCode();
            return(code);
        }
        /// <summary>
        ///     Calculates the search hint
        /// </summary>
        /// <returns></returns>
        /// <remarks> These are items in the class that change how the resultant query is run.</remarks>
        public int CalculateSearchHint()
        {
            var hashCode = 0;

            if (Name != null)
            {
                hashCode += Name.GetHashCode();
            }

            if (DisplayName != null)
            {
                hashCode += DisplayName.GetHashCode();
            }

            hashCode += AggregateFunction.GetHashCode();

            return(hashCode);
        }