コード例 #1
0
            public override int GetHashCode()
            {
                int prime  = 31;
                int result = 1;

                result = (prime * result) + ((rvKey == null) ? 0 : rvKey.GetHashCode());
                result = (prime * result) + ((valueCacheKey == null) ? 0 : valueCacheKey.GetHashCode());
                return(result);
            }
コード例 #2
0
            public override int GetHashCode()
            {
                var prime  = 31;
                var result = 1;

                result = (prime * result) + ((_rvKey == null) ? 0 : _rvKey.GetHashCode());
                result = (prime * result) + ((_valueCacheKey == null) ? 0 : _valueCacheKey.GetHashCode());
                return(result);
            }
コード例 #3
0
        private int GenerateHashCode()
        {
            unchecked
            {
                int hash = 17;

                if (RequestCacheKey != null)
                {
                    hash = hash * 92821 + RequestCacheKey.GetHashCode( );
                }

                if (EntityIdList != null)
                {
                    hash = hash * 92821 + EntityIdList.GetHashCode( );
                }

                if (Filter != null)
                {
                    hash = hash * 92821 + Filter.GetHashCode( );
                }

                return(hash);
            }
        }