コード例 #1
0
ファイル: ResultWrapper.cs プロジェクト: waqashaneef/NosDB
 public override int GetHashCode()
 {
     if (HashField != null)
     {
         return(HashField.GetHashCode());
     }
     return(_reference.GetHashCode());
 }
コード例 #2
0
ファイル: RedisHashKey.cs プロジェクト: hardin253874/Platform
        /// <summary>
        ///     Returns a hash code for this instance.
        /// </summary>
        /// <returns>
        ///     A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
        /// </returns>
        public override int GetHashCode( )
        {
            unchecked
            {
                int hash = 17;

                hash = hash * 92821 + Key.GetHashCode( );

                hash = hash * 92821 + HashField.GetHashCode( );

                return(hash);
            }
        }
コード例 #3
0
ファイル: JSONResult.cs プロジェクト: waqashaneef/NosDB
 public override int GetHashCode()
 {
     return(HashField == null?base.GetHashCode() : HashField.GetHashCode());
 }