/// <summary/> public override int GetHashCode() { int ieHashCode = String.IsNullOrEmpty(ieVersion) ? 0 : ieVersion.GetHashCode(); return(os.GetHashCode() ^ productSuite.GetHashCode() ^ osProductType.GetHashCode() ^ osCulture.GetHashCode() ^ uiCulture.GetHashCode() ^ osVersion.GetHashCode() ^ ieHashCode.GetHashCode() ^ processorArchitecture.GetHashCode()); }
/// <summary> /// Serves as a hash function for a particular type. /// </summary> /// <returns>A hash code for the current <see cref="T:System.Object"/>.</returns> public override int GetHashCode() { return(Architecture.GetHashCode() ^ Bootable.GetHashCode() ^ CustomizedInfo.GetHashCode() ^ DefaultLanguageIndex ^ (String.IsNullOrEmpty(EditionId) ? 0 : EditionId.GetHashCode()) ^ (String.IsNullOrEmpty(Hal) ? 0 : Hal.GetHashCode()) ^ (String.IsNullOrEmpty(ImageDescription) ? 0 : ImageDescription.GetHashCode()) ^ ImageIndex.GetHashCode() ^ ImageType.GetHashCode() ^ (String.IsNullOrEmpty(InstallationType) ? 0 : InstallationType.GetHashCode()) ^ Languages.GetHashCode() ^ (String.IsNullOrEmpty(ProductName) ? 0 : ProductName.GetHashCode()) ^ (String.IsNullOrEmpty(ProductSuite) ? 0 : ProductSuite.GetHashCode()) ^ (String.IsNullOrEmpty(ProductType) ? 0 : ProductType.GetHashCode()) ^ ProductVersion.GetHashCode() ^ SpLevel.GetHashCode() ^ (String.IsNullOrEmpty(SystemRoot) ? 0 : SystemRoot.GetHashCode())); }