예제 #1
0
파일: Various.cs 프로젝트: vavavr00m/NCM
 /// <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);
     }
 }
예제 #2
0
파일: Various.cs 프로젝트: vavavr00m/NCM
 /// <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);
     }
 }