Example #1
0
 /// <inheritdoc/>
 public override int GetHashCode()
 {
     unchecked
     {
         int result = base.GetHashCode();
         if (MinInjectorVersion != null)
         {
             result = (result * 397) ^ MinInjectorVersion.GetHashCode();
         }
         if (Uri != null)
         {
             result = (result * 397) ^ Uri.GetHashCode();
         }
         if (Name != null)
         {
             result = (result * 397) ^ Name.GetHashCode();
         }
         result = (result * 397) ^ Summaries.GetSequencedHashCode();
         result = (result * 397) ^ Descriptions.GetSequencedHashCode();
         if (Homepage != null)
         {
             result = (result * 397) ^ Homepage.GetHashCode();
         }
         result = (result * 397) ^ NeedsTerminal.GetHashCode();
         result = (result * 397) ^ Feeds.GetSequencedHashCode();
         result = (result * 397) ^ Categories.GetSequencedHashCode();
         result = (result * 397) ^ Icons.GetSequencedHashCode();
         result = (result * 397) ^ Elements.GetSequencedHashCode();
         result = (result * 397) ^ EntryPoints.GetSequencedHashCode();
         result = (result * 397) ^ CapabilityLists.GetSequencedHashCode();
         return(result);
     }
 }
Example #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = RelativePath?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ (Name?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Summary?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Category?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Version?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ Architecture.GetHashCode();
         hashCode = (hashCode * 397) ^ NeedsTerminal.GetHashCode();
         return(hashCode);
     }
 }
Example #3
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = (RelativePath != null ? RelativePath.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Summary != null ? Summary.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Category != null ? Category.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Version != null ? Version.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Architecture.GetHashCode();
         hashCode = (hashCode * 397) ^ NeedsTerminal.GetHashCode();
         return(hashCode);
     }
 }
Example #4
0
 /// <inheritdoc/>
 public override int GetHashCode()
 {
     unchecked
     {
         int result = base.GetHashCode();
         result = (result * 397) ^ (Command ?? "").GetHashCode();
         result = (result * 397) ^ (BinaryName ?? "").GetHashCode();
         result = (result * 397) ^ NeedsTerminal.GetHashCode();
         result = (result * 397) ^ Names.GetSequencedHashCode();
         result = (result * 397) ^ Summaries.GetSequencedHashCode();
         result = (result * 397) ^ Descriptions.GetSequencedHashCode();
         result = (result * 397) ^ Icons.GetSequencedHashCode();
         return(result);
     }
 }
Example #5
0
 /// <inheritdoc/>
 public override int GetHashCode()
 {
     unchecked
     {
         int result = base.GetHashCode();
         result = (result * 397) ^ Uri?.GetHashCode() ?? 0;
         result = (result * 397) ^ MinInjectorVersion?.GetHashCode() ?? 0;
         result = (result * 397) ^ Name?.GetHashCode() ?? 0;
         result = (result * 397) ^ Summaries.GetUnsequencedHashCode();
         result = (result * 397) ^ Descriptions.GetUnsequencedHashCode();
         result = (result * 397) ^ Homepage?.GetHashCode() ?? 0;
         result = (result * 397) ^ NeedsTerminal.GetHashCode();
         result = (result * 397) ^ Feeds.GetUnsequencedHashCode();
         result = (result * 397) ^ Categories.GetUnsequencedHashCode();
         result = (result * 397) ^ Icons.GetUnsequencedHashCode();
         result = (result * 397) ^ Elements.GetUnsequencedHashCode();
         result = (result * 397) ^ EntryPoints.GetUnsequencedHashCode();
         result = (result * 397) ^ CapabilityLists.GetUnsequencedHashCode();
         return(result);
     }
 }