예제 #1
0
 /// <inheritdoc />
 public override int GetHashCode()
 {
     unchecked
     {
         return((AssetId.GetHashCode() * 397) ^ ObjectId.GetHashCode());
     }
 }
예제 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (AssetId.Length != 0)
            {
                hash ^= AssetId.GetHashCode();
            }
            if (BundleName.Length != 0)
            {
                hash ^= BundleName.GetHashCode();
            }
            if (Version != 0L)
            {
                hash ^= Version.GetHashCode();
            }
            if (Checksum != 0)
            {
                hash ^= Checksum.GetHashCode();
            }
            if (Size != 0)
            {
                hash ^= Size.GetHashCode();
            }
            if (Key.Length != 0)
            {
                hash ^= Key.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (AssetId.Length != 0)
            {
                hash ^= AssetId.GetHashCode();
            }
            if (Url.Length != 0)
            {
                hash ^= Url.GetHashCode();
            }
            if (Size != 0)
            {
                hash ^= Size.GetHashCode();
            }
            if (Checksum != 0)
            {
                hash ^= Checksum.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
예제 #4
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((AssetId.GetHashCode() * 397) ^ (CompilationContext?.GetHashCode() ?? 0));
     }
 }
예제 #5
0
파일: LogKey.cs 프로젝트: Aggror/Stride
 public override int GetHashCode()
 {
     unchecked
     {
         return((AssetId.GetHashCode() * 397) ^ (Name != null ? Name.GetHashCode() : 0));
     }
 }
예제 #6
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(((AssetId != null ? AssetId.GetHashCode() : 0) * 397) ^ Date.GetHashCode());
     }
 }
예제 #7
0
        /// <summary>Serves as the default hash function.</summary>
        /// <returns>A hash code for the current object.</returns>
        public override int GetHashCode()
        {
            int hashCode = -449695491;

            hashCode = hashCode * -1521134295 + NodeId.GetHashCode();
            hashCode = hashCode * -1521134295 + AssetId.GetHashCode();
            hashCode = hashCode * -1521134295 + TreeIndex.GetHashCode();
            hashCode = hashCode * -1521134295 + SubtreeSize.GetHashCode();
            return(hashCode);
        }
예제 #8
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = AssetId.GetHashCode();
         hashCode = (hashCode * 397) ^ (MachineName != null ? MachineName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ IsJohnDoe.GetHashCode();
         hashCode = (hashCode * 397) ^ AssetUid.GetHashCode();
         return(hashCode);
     }
 }
예제 #9
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (AssetId != null ? AssetId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (OriginalSymbol != null ? OriginalSymbol.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ CryptoType.GetHashCode();
         hashCode = (hashCode * 397) ^ (Id != null ? Id.GetHashCode() : 0);
         return(hashCode);
     }
 }
예제 #10
0
파일: Asset.cs 프로젝트: falahati/SDroid
        /// <inheritdoc />
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = Amount.GetHashCode();
                hashCode = (hashCode * 397) ^ AppId.GetHashCode();
                hashCode = (hashCode * 397) ^ AssetId.GetHashCode();
                hashCode = (hashCode * 397) ^ ContextId.GetHashCode();

                return(hashCode);
            }
        }
예제 #11
0
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = (Id != null ? Id.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ Amount.GetHashCode();
                hashCode = (hashCode * 397) ^ (AssetId != null ? AssetId.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ Confirmations;
                hashCode = (hashCode * 397) ^ (BlockId != null ? BlockId.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Blockchain != null ? Blockchain.GetHashCode() : 0);

                return(hashCode);
            }
        }
예제 #12
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (AssetId.Length != 0)
            {
                hash ^= AssetId.GetHashCode();
            }
            if (Content.Length != 0)
            {
                hash ^= Content.GetHashCode();
            }
            return(hash);
        }
예제 #13
0
        /// <inheritdoc />
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = (int)Action;
                hashCode = (hashCode * 397) ^ AppId;
                hashCode = (hashCode * 397) ^ AssetId.GetHashCode();
                hashCode = (hashCode * 397) ^ CurrencyId.GetHashCode();
                hashCode = (hashCode * 397) ^ ContextId.GetHashCode();
                hashCode = (hashCode * 397) ^ SteamId.GetHashCode();
                hashCode = (hashCode * 397) ^ (Text != null ? Text.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ Timestamp.GetHashCode();

                return(hashCode);
            }
        }
예제 #14
0
 public override int GetHashCode()
 {
     return(ContextId.GetHashCode() ^ AssetId.GetHashCode() ^ AppId.GetHashCode() ^ Amount.GetHashCode());
 }
예제 #15
0
 public override int GetHashCode()
 {
     return(AssetId.GetHashCode());
 }
예제 #16
0
 public override int GetHashCode()
 {
     return(AssetId.GetHashCode() ^ DepartName.GetHashCode() ^ Total.GetHashCode() ^
            UOM.GetHashCode() ^ UOMId.GetHashCode());
 }