/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) if (TagId != null) { hashCode = hashCode * 59 + TagId.GetHashCode(); } if (SecondTagId != null) { hashCode = hashCode * 59 + SecondTagId.GetHashCode(); } if (IsUntaggable != null) { hashCode = hashCode * 59 + IsUntaggable.GetHashCode(); } if (Comment != null) { hashCode = hashCode * 59 + Comment.GetHashCode(); } if (ShareTags != null) { hashCode = hashCode * 59 + ShareTags.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() { unchecked { return((TagId.GetHashCode() * 397) ^ Name.GetHashCode()); } }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) if (InventoryVariantName != null) { hashCode = hashCode * 59 + InventoryVariantName.GetHashCode(); } if (TagId != null) { hashCode = hashCode * 59 + TagId.GetHashCode(); } if (AssetNumber != null) { hashCode = hashCode * 59 + AssetNumber.GetHashCode(); } if (SubNumber != null) { hashCode = hashCode * 59 + SubNumber.GetHashCode(); } if (CompanyCode != null) { hashCode = hashCode * 59 + CompanyCode.GetHashCode(); } if (Description != null) { hashCode = hashCode * 59 + Description.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() { int hashCode = -2103575766; unchecked { hashCode = (hashCode * -1521134295) + Section.GetHashCode(); hashCode = (hashCode * -1521134295) + TagId.GetHashCode(); } return(hashCode); }
public override int GetHashCode() { int hash = 1; if (TagId != 0) { hash ^= TagId.GetHashCode(); } if (TagName.Length != 0) { hash ^= TagName.GetHashCode(); } if (SaveTagName.Length != 0) { hash ^= SaveTagName.GetHashCode(); } if (PublishTagName.Length != 0) { hash ^= PublishTagName.GetHashCode(); } if (DataType != 0) { hash ^= DataType.GetHashCode(); } if (DataFormat != 0) { hash ^= DataFormat.GetHashCode(); } if (StringDataEncoding != 0) { hash ^= StringDataEncoding.GetHashCode(); } if (CorrectCoefficient != 0F) { hash ^= CorrectCoefficient.GetHashCode(); } if (AdiustParameters != 0F) { hash ^= AdiustParameters.GetHashCode(); } if (DataUnit != 0) { hash ^= DataUnit.GetHashCode(); } return(hash); }
public override int GetHashCode() { unchecked { const int hashingBase = (int)2166136261; const int hashingMultiplier = 16777619; int hash = hashingBase; hash = (hash * hashingMultiplier) + TagId.GetHashCode(); hash = (hash * hashingMultiplier) + Name.GetHashCode(); hash = (hash * hashingMultiplier) + Description.GetHashCode(); hash = (hash * hashingMultiplier) + Meta.GetHashCode(); hash = (hash * hashingMultiplier) + Vns.GetHashCode(); hash = (hash * hashingMultiplier) + Cat.GetHashCode(); hash = (hash * hashingMultiplier) + Aliases.GetHashCode(); hash = (hash * hashingMultiplier) + Parents.GetHashCode(); return(hash); } }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) if (SearchString != null) { hashCode = hashCode * 59 + SearchString.GetHashCode(); } if (SortingColumn != null) { hashCode = hashCode * 59 + SortingColumn.GetHashCode(); } if (TagId != null) { hashCode = hashCode * 59 + TagId.GetHashCode(); } if (Name != null) { hashCode = hashCode * 59 + Name.GetHashCode(); } if (AssetNumber != null) { hashCode = hashCode * 59 + AssetNumber.GetHashCode(); } if (Latitude != null) { hashCode = hashCode * 59 + Latitude.GetHashCode(); } if (Longitude != null) { hashCode = hashCode * 59 + Longitude.GetHashCode(); } if (AssetClass != null) { hashCode = hashCode * 59 + AssetClass.GetHashCode(); } if (LastModified != null) { hashCode = hashCode * 59 + LastModified.GetHashCode(); } if (Created != null) { hashCode = hashCode * 59 + Created.GetHashCode(); } if (Creator != null) { hashCode = hashCode * 59 + Creator.GetHashCode(); } if (SubNumber != null) { hashCode = hashCode * 59 + SubNumber.GetHashCode(); } if (CompanyCode != null) { hashCode = hashCode * 59 + CompanyCode.GetHashCode(); } if (InventoryNumber != null) { hashCode = hashCode * 59 + InventoryNumber.GetHashCode(); } if (SerialNumber != null) { hashCode = hashCode * 59 + SerialNumber.GetHashCode(); } if (Location != null) { hashCode = hashCode * 59 + Location.GetHashCode(); } if (Room != null) { hashCode = hashCode * 59 + Room.GetHashCode(); } if (CostCenter != null) { hashCode = hashCode * 59 + CostCenter.GetHashCode(); } if (CapitalisationDate != null) { hashCode = hashCode * 59 + CapitalisationDate.GetHashCode(); } if (LastInventoryDate != null) { hashCode = hashCode * 59 + LastInventoryDate.GetHashCode(); } if (AcquisitionValue != null) { hashCode = hashCode * 59 + AcquisitionValue.GetHashCode(); } if (AssetSuperNumber != null) { hashCode = hashCode * 59 + AssetSuperNumber.GetHashCode(); } if (Vendor != null) { hashCode = hashCode * 59 + Vendor.GetHashCode(); } if (TypeName != null) { hashCode = hashCode * 59 + TypeName.GetHashCode(); } if (Plant != null) { hashCode = hashCode * 59 + Plant.GetHashCode(); } if (Quantity != null) { hashCode = hashCode * 59 + Quantity.GetHashCode(); } if (Unit != null) { hashCode = hashCode * 59 + Unit.GetHashCode(); } if (Untaggable != null) { hashCode = hashCode * 59 + Untaggable.GetHashCode(); } if (Untagged != null) { hashCode = hashCode * 59 + Untagged.GetHashCode(); } if (Page != null) { hashCode = hashCode * 59 + Page.GetHashCode(); } if (PageSize != null) { hashCode = hashCode * 59 + PageSize.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() { return(TagId.GetHashCode()); }
public override int GetHashCode() { return(ImageId.GetHashCode() + '_' + TagId.GetHashCode()); }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) if (AssetNumber != null) { hashCode = hashCode * 59 + AssetNumber.GetHashCode(); } if (SubNumber != null) { hashCode = hashCode * 59 + SubNumber.GetHashCode(); } if (CompanyCode != null) { hashCode = hashCode * 59 + CompanyCode.GetHashCode(); } if (TagId != null) { hashCode = hashCode * 59 + TagId.GetHashCode(); } if (SecondTagId != null) { hashCode = hashCode * 59 + SecondTagId.GetHashCode(); } if (IsUntaggable != null) { hashCode = hashCode * 59 + IsUntaggable.GetHashCode(); } if (LastModified != null) { hashCode = hashCode * 59 + LastModified.GetHashCode(); } if (Created != null) { hashCode = hashCode * 59 + Created.GetHashCode(); } if (Creator != null) { hashCode = hashCode * 59 + Creator.GetHashCode(); } if (InventoryNumber != null) { hashCode = hashCode * 59 + InventoryNumber.GetHashCode(); } if (SerialNumber != null) { hashCode = hashCode * 59 + SerialNumber.GetHashCode(); } if (Location != null) { hashCode = hashCode * 59 + Location.GetHashCode(); } if (Room != null) { hashCode = hashCode * 59 + Room.GetHashCode(); } if (Description != null) { hashCode = hashCode * 59 + Description.GetHashCode(); } if (CostCenter != null) { hashCode = hashCode * 59 + CostCenter.GetHashCode(); } if (CapitalisationDate != null) { hashCode = hashCode * 59 + CapitalisationDate.GetHashCode(); } if (LastInventoryDate != null) { hashCode = hashCode * 59 + LastInventoryDate.GetHashCode(); } if (AcquisitionValue != null) { hashCode = hashCode * 59 + AcquisitionValue.GetHashCode(); } if (AssetSuperNumber != null) { hashCode = hashCode * 59 + AssetSuperNumber.GetHashCode(); } if (Vendor != null) { hashCode = hashCode * 59 + Vendor.GetHashCode(); } if (TypeName != null) { hashCode = hashCode * 59 + TypeName.GetHashCode(); } if (Plant != null) { hashCode = hashCode * 59 + Plant.GetHashCode(); } if (AssetClass != null) { hashCode = hashCode * 59 + AssetClass.GetHashCode(); } if (Quantity != null) { hashCode = hashCode * 59 + Quantity.GetHashCode(); } if (Unit != null) { hashCode = hashCode * 59 + Unit.GetHashCode(); } if (DeactivatedOn != null) { hashCode = hashCode * 59 + DeactivatedOn.GetHashCode(); } if (IsDeactivated != null) { hashCode = hashCode * 59 + IsDeactivated.GetHashCode(); } if (CompanyCodeCurrency != null) { hashCode = hashCode * 59 + CompanyCodeCurrency.GetHashCode(); } if (Comment != null) { hashCode = hashCode * 59 + Comment.GetHashCode(); } if (ShareTags != null) { hashCode = hashCode * 59 + ShareTags.GetHashCode(); } return(hashCode); } }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) if (TagId != null) { hashCode = hashCode * 59 + TagId.GetHashCode(); } if (SecondTagId != null) { hashCode = hashCode * 59 + SecondTagId.GetHashCode(); } if (IsUntaggable != null) { hashCode = hashCode * 59 + IsUntaggable.GetHashCode(); } if (Latitude != null) { hashCode = hashCode * 59 + Latitude.GetHashCode(); } if (Longitude != null) { hashCode = hashCode * 59 + Longitude.GetHashCode(); } if (LastModified != null) { hashCode = hashCode * 59 + LastModified.GetHashCode(); } if (Created != null) { hashCode = hashCode * 59 + Created.GetHashCode(); } if (Creator != null) { hashCode = hashCode * 59 + Creator.GetHashCode(); } if (Comment != null) { hashCode = hashCode * 59 + Comment.GetHashCode(); } if (ShareTags != null) { hashCode = hashCode * 59 + ShareTags.GetHashCode(); } if (SapAsset != null) { hashCode = hashCode * 59 + SapAsset.GetHashCode(); } if (AssetNumber != null) { hashCode = hashCode * 59 + AssetNumber.GetHashCode(); } if (SubNumber != null) { hashCode = hashCode * 59 + SubNumber.GetHashCode(); } if (CompanyCode != null) { hashCode = hashCode * 59 + CompanyCode.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() { return(TagId?.GetHashCode() ?? int.MinValue); }