public override int GetHashCode() { unchecked { return(((TagName != null ? TagName.GetHashCode() : 0) * 397) ^ Count); } }
public override int GetHashCode() { if (fHashCode == 0) { fHashCode = 19 * TagID + 7; fHashCode ^= 11 * EntityID + 11; fHashCode ^= 17 * EntityType + 21; if (!String.IsNullOrEmpty(TagName)) { fHashCode ^= TagName.GetHashCode(); } if (!String.IsNullOrEmpty(TagColor)) { fHashCode ^= TagColor.GetHashCode(); } if (!String.IsNullOrEmpty(TagTextColor)) { fHashCode ^= TagTextColor.GetHashCode(); } if (!String.IsNullOrEmpty(EntityName)) { fHashCode ^= EntityName.GetHashCode(); } } return(fHashCode); }
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() { var hash = 17; hash = hash * 23 + TagName.GetHashCode(); foreach ( var attribute in this.Where(attribute => !string.Equals(attribute.Key, "style") && !string.Equals(attribute.Key, "class")) .OrderBy(attribute => attribute.Key)) { hash = hash * 23 + attribute.Key.GetHashCode(); hash = hash * 23 + attribute.Value.GetHashCode(); } foreach (var style in Styles.OrderBy(style => style.Key)) { hash = hash * 23 + style.Key.GetHashCode(); hash = hash * 23 + style.Value.GetHashCode(); } hash = Classes.OrderBy(c => c).Aggregate(hash, (current, @class) => current * 23 + @class.GetHashCode()); return(Contents.Aggregate(hash, (current, content) => current * 23 + content.GetHashCode())); }
public override int GetHashCode() { return(TagPrefix.GetHashCode() ^ TagName.GetHashCode() ^ Namespace.GetHashCode() ^ Assembly.GetHashCode() ^ Source.GetHashCode()); }
public override int GetHashCode() { return(Id.GetHashCode() ^ User.GetHashCode() ^ Tenant.GetHashCode() ^ TagName.GetHashCode() ^ Style.GetHashCode() ^ Addresses.GetHashCode() ^ Count.GetHashCode() ^ CrmId.GetHashCode()); }
// Boilerplate comparison stuff. I wish C# had sensible metaprogramming facilities. public override int GetHashCode() { return(TagName.GetHashCode()); }
public override int GetHashCode() { return(TagID.GetHashCode() ^ AssetID.GetHashCode() ^ TagName.GetHashCode() ^ AssetName.GetHashCode() ^ isEnabled.GetHashCode() ^ Target.GetHashCode()); }
public override int GetHashCode() { return(Namespace.GetHashCode() + Source.GetHashCode() + TagName.GetHashCode() + TagPrefix.GetHashCode()); }
public override int GetHashCode() { return(tagA.GetHashCode() ^ tagB.GetHashCode()); }
public override int GetHashCode() { return(TagName.GetHashCode() ^ Attributes.Aggregate(0, (a, b) => a ^= b.GetHashCode())); }
/// <summary> /// Gets the hash code. /// </summary> /// <returns>The hash code of the tag name.</returns> public override int GetHashCode() => TagName.GetHashCode();