コード例 #1
0
ファイル: Coin.cs プロジェクト: Serghii/Rig
    public override int GetHashCode()
    {
        int hash = 13;

        hash = (hash * 7) + Name.GetHashCode();
        hash = (hash * 7) + Hashrate.GetHashCode();
        return(hash);
    }
コード例 #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = Id;
         hashCode = (hashCode * 397) ^ (ServiceEntry != null ? ServiceEntry.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (PriceId != null ? PriceId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (AlgoName != null ? AlgoName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ UseWindow.GetHashCode();
         hashCode = (hashCode * 397) ^ MinProfit.GetHashCode();
         hashCode = (hashCode * 397) ^ Hashrate.GetHashCode();
         hashCode = (hashCode * 397) ^ Power.GetHashCode();
         hashCode = (hashCode * 397) ^ (Priority != null ? Priority.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Affinity;
         hashCode = (hashCode * 397) ^ (Folder != null ? Folder.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Command != null ? Command.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Arguments != null ? Arguments.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (DonationFolder != null ? DonationFolder.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (DonationCommand != null ? DonationCommand.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (DonationArguments != null ? DonationArguments.GetHashCode() : 0);
         return(hashCode);
     }
 }