Example #1
0
 /// <inheritdoc/>
 public override int GetHashCode()
 {
     unchecked
     {
         int result = base.GetHashCode();
         result = (result * 397) ^ Command?.GetHashCode() ?? 0;
         result = (result * 397) ^ BinaryName?.GetHashCode() ?? 0;
         result = (result * 397) ^ NeedsTerminal.GetHashCode();
         result = (result * 397) ^ Names.GetUnsequencedHashCode();
         result = (result * 397) ^ Summaries.GetUnsequencedHashCode();
         result = (result * 397) ^ Descriptions.GetUnsequencedHashCode();
         result = (result * 397) ^ Icons.GetUnsequencedHashCode();
         return(result);
     }
 }
Example #2
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);
     }
 }