protected bool Equals(PriceEntryBase other)
 {
     return(Id == other.Id && Equals(ServiceEntry, other.ServiceEntry) && string.Equals(PriceId, other.PriceId) &&
            string.Equals(AlgoName, other.AlgoName) && string.Equals(Name, other.Name) &&
            UseWindow.Equals(other.UseWindow) && MinProfit == other.MinProfit && Hashrate == other.Hashrate &&
            Power == other.Power && string.Equals(Priority, other.Priority) && Affinity == other.Affinity &&
            string.Equals(Folder, other.Folder) && string.Equals(Command, other.Command) &&
            string.Equals(Arguments, other.Arguments) && string.Equals(DonationFolder, other.DonationFolder) &&
            string.Equals(DonationCommand, other.DonationCommand) &&
            string.Equals(DonationArguments, other.DonationArguments));
 }
 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);
     }
 }