/// <summary>Returns a hash code for this <see cref="DisplayDeviceMode"/> structure.</summary> /// <returns>Returns a hash code for this <see cref="DisplayDeviceMode"/> structure.</returns> public override int GetHashCode() { return(this.DeviceName.GetHashCode() ^ specVersion.GetHashCode() ^ driverVersion.GetHashCode() ^ structureSize.GetHashCode() ^ driverExtra.GetHashCode() ^ fields.GetHashCode() ^ displayInfo.GetHashCode() ^ color.GetHashCode() ^ duplex.GetHashCode() ^ yResolution.GetHashCode() ^ ttOption.GetHashCode() ^ collate.GetHashCode() ^ (formName == null ? 0 : formName.GetHashCode()) ^ logPixels.GetHashCode() ^ bitsPerPel ^ pelsWidth ^ pelsHeight ^ displayFlags ^ displayFrequency ^ icmMethod ^ icmIntent ^ mediaType ^ ditherType ^ reserved1 ^ reserved2 ^ panningWidth ^ panningHeight); }
public override int GetHashCode() { unchecked { return(((Cards?.GetHashCode() ?? 0) * 397) ^ (DisplayInfo != null ? DisplayInfo.GetHashCode() : 0)); } }
public override int GetHashCode() { unchecked { var hashCode = CardsFixedAtLevel?.GetHashCode() ?? 0; hashCode = (hashCode * 397) ^ (ComputerDifficulty != null ? ComputerDifficulty.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (DisplayInfo != null ? DisplayInfo.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Hide.GetHashCode(); hashCode = (hashCode * 397) ^ (Id?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Image != null ? Image.GetHashCode() : 0); hashCode = (hashCode * 397) ^ IsNew.GetHashCode(); hashCode = (hashCode * 397) ^ IsQuickmatchPlaylist.GetHashCode(); hashCode = (hashCode * 397) ^ IsTeamGamePlaylist.GetHashCode(); hashCode = (hashCode * 397) ^ LonelyPartyUsesWildcard.GetHashCode(); hashCode = (hashCode * 397) ^ MatchTicketTimeoutDurationSeconds; hashCode = (hashCode * 397) ^ MaxPartySize; hashCode = (hashCode * 397) ^ MaxPlayerCount; hashCode = (hashCode * 397) ^ MinPartySize; hashCode = (hashCode * 397) ^ MinPlayerCount; hashCode = (hashCode * 397) ^ (MpsdHopperName?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (MpsdHopperStatName?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (PlaylistEntries?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (StatsClassification?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (TargetPlatform?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (ThumbnailImage != null ? ThumbnailImage.GetHashCode() : 0); hashCode = (hashCode * 397) ^ UsesBanRules.GetHashCode(); hashCode = (hashCode * 397) ^ Voting.GetHashCode(); return(hashCode); } }
public void DeviceDisplay_Comparison( double width1, double height1, double density1, DisplayOrientation orientation1, DisplayRotation rotation1, double width2, double height2, double density2, DisplayOrientation orientation2, DisplayRotation rotation2, bool equals) { var device1 = new DisplayInfo( width: width1, height: height1, density: density1, orientation: orientation1, rotation: rotation1); var device2 = new DisplayInfo( width: width2, height: height2, density: density2, orientation: orientation2, rotation: rotation2); if (equals) { Assert.True(device1.Equals(device2)); Assert.True(device1 == device2); Assert.False(device1 != device2); Assert.Equal(device1, device2); Assert.Equal(device1.GetHashCode(), device2.GetHashCode()); } else { Assert.False(device1.Equals(device2)); Assert.True(device1 != device2); Assert.False(device1 == device2); Assert.NotEqual(device1, device2); Assert.NotEqual(device1.GetHashCode(), device2.GetHashCode()); } }
public override int GetHashCode() { unchecked { var hashCode = (DisplayInfo != null ? DisplayInfo.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Image != null ? Image.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ObjectTypeId?.GetHashCode() ?? 0); return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = (DisplayInfo != null ? DisplayInfo.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Packs?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ RankNumber; hashCode = (hashCode * 397) ^ StartXp; return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = (DisplayInfo != null ? DisplayInfo.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Image != null ? Image.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Image4K != null ? Image4K.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Playlists?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ StartDate.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = (DisplayInfo != null ? DisplayInfo.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Faction?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ Id; hashCode = (hashCode * 397) ^ (Image != null ? Image.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Name?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (PromotionOffer != null ? PromotionOffer.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (StartingArmyOptions?.GetHashCode() ?? 0); return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = Categories?.GetHashCode() ?? 0; hashCode = (hashCode * 397) ^ (DisplayInfo != null ? DisplayInfo.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (EffectivenessAgainstAir?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (EffectivenessAgainstInfantry?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (EffectivenessAgainstVehicles?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Image != null ? Image.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ObjectTypeId?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (StandardEnergyCost != null ? StandardEnergyCost.GetHashCode() : 0);; hashCode = (hashCode * 397) ^ (StandardPopulationCost != null ? StandardPopulationCost.GetHashCode() : 0);; hashCode = (hashCode * 397) ^ (StandardSupplyCost != null ? StandardSupplyCost.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = PackRules?.GetHashCode() ?? 0; hashCode = (hashCode * 397) ^ (FrontImage != null ? FrontImage.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (BackImage != null ? BackImage.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (BackImage4K != null ? BackImage4K.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (HighlightImage != null ? HighlightImage.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (HighlightImage4K != null ? HighlightImage4K.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (FrontImage4K != null ? FrontImage4K.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (StackGroup?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ InventorySortPriority; hashCode = (hashCode * 397) ^ (DisplayInfo != null ? DisplayInfo.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (MarketplaceProductId?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (ProductId?.GetHashCode() ?? 0); return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = Rarity; hashCode = (hashCode * 397) ^ (Entitlement != null ? Entitlement.GetHashCode() : 0); hashCode = (hashCode * 397) ^ EntitlementRequired.GetHashCode(); hashCode = (hashCode * 397) ^ ExcludeFromCardGeneration.GetHashCode(); hashCode = (hashCode * 397) ^ (Faction?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Leader != null ? Leader.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ForegroundImage != null ? ForegroundImage.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (DisplayInfo != null ? DisplayInfo.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (GameObject != null ? GameObject.GetHashCode() : 0); hashCode = (hashCode * 397) ^ LastStandNumber.GetHashCode(); hashCode = (hashCode * 397) ^ EnergyCost; hashCode = (hashCode * 397) ^ (PlayType?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Keywords?.GetHashCode() ?? 0); return(hashCode); } }