public override int GetHashCode() { var d = LocalName?.GetHashCode() ?? 1; var id = Value?.GetHashCode() ?? 0; return(d + id); }
// FDG ***** DO override GetHashCode whenever you override Equals. /// <summary> /// Gets the hash code for this instance of an OpenXmlAttribute structure. /// </summary> /// <returns>The hash code for this instance of an OpenXmlAttribute structure.</returns> public override int GetHashCode() { int hashCode = 0; if (LocalName != null) { hashCode ^= LocalName.GetHashCode(); } if (NamespaceUri != null) { hashCode ^= NamespaceUri.GetHashCode(); } if (Prefix != null) { hashCode ^= Prefix.GetHashCode(); } if (Value != null) { hashCode ^= Value.GetHashCode(); } return(hashCode); }
/// <summary></summary> public override int GetHashCode() { if (FullNamespace == null) { return(LocalName.GetHashCode()); } return(LocalName.GetHashCode() ^ FullNamespace.GetHashCode()); }
public override int GetHashCode() { unchecked { var result = 1000000009 * LocalName.GetHashCode(); result += 1000000021 * Namespace.GetHashCode(); return(result); } }
/// <summary> /// Returns the hash code for this instance. /// </summary> /// <returns> /// A 32-bit signed integer hash code. /// </returns> public override int GetHashCode() { unchecked { return (((LocalName?.GetHashCode() ?? 0) * 397) ^ (Namespace != null ? Namespace.GetHashCode() : 0)); } }
public override int GetHashCode() { unchecked { var hashCode = (SourceName != null ? SourceName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (LocalName != null ? LocalName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Path != null ? Path.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { var hashCode = 17; unchecked { hashCode = 31 * hashCode + LocalName.GetHashCode(); if (NamespaceUri != null) { hashCode = 31 * hashCode + NamespaceUri.GetHashCode(); } } return(hashCode); }
public override int GetHashCode() { return(LocalName.GetHashCode() ^ NamespaceUri.GetHashCode() << 8); }
public override int GetHashCode() { return(LocalName.GetHashCode()); }
public override int GetHashCode() { return((NamespaceURI?.GetHashCode() ?? 0) + (LocalName?.GetHashCode() ?? 0)); }
/// <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() { return(SubSystem.GetHashCode() ^ LocalName.GetHashCode()); }