Exemplo n.º 1
0
 /// <inheritdoc />
 public override int GetHashCode()
 {
     unchecked
     {
         return(((PackageName != null ? PackageName.GetHashCode() : 0) * 397) ^ IsDevelopment.GetHashCode());
     }
 }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            int hashcode = Type.GetHashCode();

            if (SourceFolder != null)
            {
                hashcode += SourceFolder.GetHashCode();
            }
            if (SourceRelPath != null)
            {
                hashcode += SourceRelPath.GetHashCode();
            }
            if (PackageName != null)
            {
                hashcode += PackageName.GetHashCode();
            }
            if (PackageVersion != null)
            {
                hashcode += PackageVersion.GetHashCode();
            }
            if (GitUrl != null)
            {
                hashcode += GitUrl.GetHashCode();
            }
            if (GitBranch != null)
            {
                hashcode += GitBranch.GetHashCode();
            }
            return(hashcode);
        }
Exemplo n.º 3
0
 /// <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(InstallTime.GetHashCode()
            ^ (string.IsNullOrWhiteSpace(PackageName) ? 0 : PackageName.GetHashCode())
            ^ PackageState.GetHashCode()
            ^ ReleaseType.GetHashCode());
 }
Exemplo n.º 4
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (PackageName != null ? PackageName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Version != null ? Version.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (InstallPath != null ? InstallPath.GetHashCode() : 0);
         return(hashCode);
     }
 }
Exemplo n.º 5
0
 /// <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()
            ^ DisplayName?.GetHashCode() ?? 0
            ^ InstallLocation?.GetHashCode() ?? 0
            ^ PackageName?.GetHashCode() ?? 0
            ^ PublisherId?.GetHashCode() ?? 0
            ^ ResourceId?.GetHashCode() ?? 0
            ^ Version.GetHashCode());
 }
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (PackageName != null ? PackageName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (TypeName != null ? TypeName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ IsBuiltIn.GetHashCode();
         hashCode = (hashCode * 397) ^ IsArray.GetHashCode();
         hashCode = (hashCode * 397) ^ ArraySize;
         return(hashCode);
     }
 }
Exemplo n.º 7
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hash = PackageName.GetHashCode();
         if (PackageVersion != null)
         {
             hash = (hash * 397) ^ PackageVersion.GetHashCode();
         }
         return(hash);
     }
 }
Exemplo n.º 8
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = PackageName?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ (Label?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (VersionName?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ VersionCode.GetHashCode();
         hashCode = (hashCode * 397) ^ MinSdkVersion;
         hashCode = (hashCode * 397) ^ TargetSdkVersion;
         hashCode = (hashCode * 397) ^ ScreenSupport.GetHashCode();
         return(hashCode);
     }
 }
Exemplo n.º 9
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = Title.GetHashCode();
         result = (result * 397) ^ Command.GetHashCode();
         result = (result * 397) ^ Arguments.GetHashCode();
         result = (result * 397) ^ InitialDirectory.GetHashCode();
         result = (result * 397) ^ OutputToImmediateWindow.GetHashCode();
         result = (result * 397) ^ ReportTitle.GetHashCode();
         result = (result * 397) ^ ArgsCollectorDllPath.GetHashCode();
         result = (result * 397) ^ ArgsCollectorClassName.GetHashCode();
         result = (result * 397) ^ ToolDirPath.GetHashCode();
         result = (result * 397) ^ (PackageVersion == null ? 0 : PackageVersion.GetHashCode());
         result = (result * 397) ^ (PackageIdentifier == null ? 0 : PackageIdentifier.GetHashCode());
         result = (result * 397) ^ (PackageName == null ? 0 : PackageName.GetHashCode());
         return(result);
     }
 }
Exemplo n.º 10
0
 public override int GetHashCode()
 => PackageName.GetHashCode();
Exemplo n.º 11
0
 public override int GetHashCode()
 {
     return(PackageName.GetHashCode() + Version.GetHashCode());
 }