public override int GetHashCode() { int hash = 1; if (Name.Length != 0) { hash ^= Name.GetHashCode(); } if (AssetType.Length != 0) { hash ^= AssetType.GetHashCode(); } if (resource_ != null) { hash ^= Resource.GetHashCode(); } if (iamPolicy_ != null) { hash ^= IamPolicy.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
/// <summary> /// Generates a number corresponding to the value of the object to support the use of a hash table. /// Suitable for use in hashing algorithms and data structures such as a hash table /// </summary> /// <returns>A Hashcode of all the combined InventoryItem fields</returns> public override int GetHashCode() { return(AssetUUID.GetHashCode() ^ Permissions.GetHashCode() ^ AssetType.GetHashCode() ^ InventoryType.GetHashCode() ^ Description.GetHashCode() ^ GroupID.GetHashCode() ^ GroupOwned.GetHashCode() ^ SalePrice.GetHashCode() ^ SaleType.GetHashCode() ^ Flags.GetHashCode() ^ CreationDate.GetHashCode() ^ LastOwnerID.GetHashCode()); }
public override int GetHashCode() { unchecked { var hash = 17; hash = hash * 23 + (Amount ?? 0.0m).GetHashCode(); hash = hash * 23 + AssetType?.GetHashCode() ?? 0; return(hash); } }
public override int GetHashCode() { var hashCode = -1441087147; hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(AssetCode); hashCode = hashCode * -1521134295 + AssetType.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(IssuerAddress); return(hashCode); }
public override int GetHashCode() { var hashCode = 1140047375; hashCode = hashCode * -1521134295 + AssetType.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(AssetLocation); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(AssetName); return(hashCode); }
public override int GetHashCode() { int hash = 1; if (Id.Length != 0) { hash ^= Id.GetHashCode(); } hash ^= unlockConditions_.GetHashCode(); if (AssetScriptName.Length != 0) { hash ^= AssetScriptName.GetHashCode(); } if (Icon.Length != 0) { hash ^= Icon.GetHashCode(); } if (AssetType != 0) { hash ^= AssetType.GetHashCode(); } if (LensType != 0) { hash ^= LensType.GetHashCode(); } if (Visible != false) { hash ^= Visible.GetHashCode(); } if (MediaSupportedType != 0) { hash ^= MediaSupportedType.GetHashCode(); } if (Animated != false) { hash ^= Animated.GetHashCode(); } if (StorePackId.Length != 0) { hash ^= StorePackId.GetHashCode(); } if (OrderId != 0) { hash ^= OrderId.GetHashCode(); } if (IsFullBodyLens != false) { hash ^= IsFullBodyLens.GetHashCode(); } if (IsEmptyAsset != false) { hash ^= IsEmptyAsset.GetHashCode(); } if (ShowBadge != false) { hash ^= ShowBadge.GetHashCode(); } if (visibilityConditions_ != null) { hash ^= VisibilityConditions.GetHashCode(); } if (StockAssetName.Length != 0) { hash ^= StockAssetName.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }