/// <summary> /// Serves as a hash function for a <see cref="TagTableEntry"/>. /// </summary> /// <returns>A hash code for the current <see cref="TagTableEntry"/></returns> public override int GetHashCode() { unchecked { int hash = (int)2166136261; hash *= 16777619 ^ Signature.GetHashCode(); hash *= 16777619 ^ Offset.GetHashCode(); hash *= 16777619 ^ DataSize.GetHashCode(); return(hash); } }
/// <summary> /// Serves as a hash function for a <see cref="ProfileDescription"/>. /// </summary> /// <returns>A hash code for the current <see cref="ProfileDescription"/></returns> public override int GetHashCode() { unchecked { int hash = (int)2166136261; hash *= 16777619 ^ DeviceManufacturer.GetHashCode(); hash *= 16777619 ^ DeviceModel.GetHashCode(); hash *= 16777619 ^ DeviceAttributes.GetHashCode(); hash *= 16777619 ^ TechnologyInformation.GetHashCode(); hash *= 16777619 ^ CMP.GetHashCode(DeviceManufacturerInfo); hash *= 16777619 ^ CMP.GetHashCode(DeviceModelInfo); return(hash); } }