Here are the examples of the csharp api System.DateTime.GetHashCode() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
839 Examples
19
View Source File : BssomDateTime.cs
License : MIT License
Project Creator : 1996v
License : MIT License
Project Creator : 1996v
public override int GetHashCode()
{
return GetDateTime().GetHashCode();
}
19
View Source File : CreatePaymentLinkRequest.cs
License : MIT License
Project Creator : Adyen
License : MIT License
Project Creator : Adyen
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.AllowedPaymentMethods != null)
hashCode = hashCode * 59 + this.AllowedPaymentMethods.GetHashCode();
if (this.Amount != null)
hashCode = hashCode * 59 + this.Amount.GetHashCode();
if (this.ApplicationInfo != null)
hashCode = hashCode * 59 + this.ApplicationInfo.GetHashCode();
if (this.BillingAddress != null)
hashCode = hashCode * 59 + this.BillingAddress.GetHashCode();
if (this.BlockedPaymentMethods != null)
hashCode = hashCode * 59 + this.BlockedPaymentMethods.GetHashCode();
if (this.CountryCode != null)
hashCode = hashCode * 59 + this.CountryCode.GetHashCode();
if (this.DeliverAt != null)
hashCode = hashCode * 59 + this.DeliverAt.GetHashCode();
if (this.DeliveryAddress != null)
hashCode = hashCode * 59 + this.DeliveryAddress.GetHashCode();
if (this.Description != null)
hashCode = hashCode * 59 + this.Description.GetHashCode();
if (this.ExpiresAt != null)
hashCode = hashCode * 59 + this.ExpiresAt.GetHashCode();
if (this.InstallmentOptions != null)
hashCode = hashCode * 59 + this.InstallmentOptions.GetHashCode();
if (this.LineItems != null)
hashCode = hashCode * 59 + this.LineItems.GetHashCode();
if (this.MerchantAccount != null)
hashCode = hashCode * 59 + this.MerchantAccount.GetHashCode();
if (this.MerchantOrderReference != null)
hashCode = hashCode * 59 + this.MerchantOrderReference.GetHashCode();
if (this.Metadata != null)
hashCode = hashCode * 59 + this.Metadata.GetHashCode();
if (this.RecurringProcessingModel != null)
hashCode = hashCode * 59 + this.RecurringProcessingModel.GetHashCode();
if (this.Reference != null)
hashCode = hashCode * 59 + this.Reference.GetHashCode();
if (this.ReturnUrl != null)
hashCode = hashCode * 59 + this.ReturnUrl.GetHashCode();
if (this.Reusable != null)
hashCode = hashCode * 59 + this.Reusable.GetHashCode();
if (this.RiskData != null)
hashCode = hashCode * 59 + this.RiskData.GetHashCode();
if (this.ShopperEmail != null)
hashCode = hashCode * 59 + this.ShopperEmail.GetHashCode();
if (this.ShopperLocale != null)
hashCode = hashCode * 59 + this.ShopperLocale.GetHashCode();
if (this.ShopperName != null)
hashCode = hashCode * 59 + this.ShopperName.GetHashCode();
if (this.ShopperReference != null)
hashCode = hashCode * 59 + this.ShopperReference.GetHashCode();
if (this.Splits != null)
hashCode = hashCode * 59 + this.Splits.GetHashCode();
if (this.Store != null)
hashCode = hashCode * 59 + this.Store.GetHashCode();
if (this.StorePaymentMethod != null)
hashCode = hashCode * 59 + this.StorePaymentMethod.GetHashCode();
return hashCode;
}
}
19
View Source File : MerchantRiskIndicator.cs
License : MIT License
Project Creator : Adyen
License : MIT License
Project Creator : Adyen
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.AddressMatch != null)
hashCode = hashCode * 59 + this.AddressMatch.GetHashCode();
if (this.DeliveryAddressIndicator != null)
hashCode = hashCode * 59 + this.DeliveryAddressIndicator.GetHashCode();
if (this.DeliveryEmail != null)
hashCode = hashCode * 59 + this.DeliveryEmail.GetHashCode();
if (this.DeliveryTimeframe != null)
hashCode = hashCode * 59 + this.DeliveryTimeframe.GetHashCode();
if (this.GiftCardAmount != null)
hashCode = hashCode * 59 + this.GiftCardAmount.GetHashCode();
if (this.GiftCardCount != null)
hashCode = hashCode * 59 + this.GiftCardCount.GetHashCode();
if (this.PreOrderDate != null)
hashCode = hashCode * 59 + this.PreOrderDate.GetHashCode();
if (this.PreOrderPurchase != null)
hashCode = hashCode * 59 + this.PreOrderPurchase.GetHashCode();
if (this.ReorderItems != null)
hashCode = hashCode * 59 + this.ReorderItems.GetHashCode();
return hashCode;
}
}
19
View Source File : PaymentLinkResource.cs
License : MIT License
Project Creator : Adyen
License : MIT License
Project Creator : Adyen
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.AllowedPaymentMethods != null)
hashCode = hashCode * 59 + this.AllowedPaymentMethods.GetHashCode();
if (this.Amount != null)
hashCode = hashCode * 59 + this.Amount.GetHashCode();
if (this.ApplicationInfo != null)
hashCode = hashCode * 59 + this.ApplicationInfo.GetHashCode();
if (this.BillingAddress != null)
hashCode = hashCode * 59 + this.BillingAddress.GetHashCode();
if (this.BlockedPaymentMethods != null)
hashCode = hashCode * 59 + this.BlockedPaymentMethods.GetHashCode();
if (this.CountryCode != null)
hashCode = hashCode * 59 + this.CountryCode.GetHashCode();
if (this.DeliverAt != null)
hashCode = hashCode * 59 + this.DeliverAt.GetHashCode();
if (this.DeliveryAddress != null)
hashCode = hashCode * 59 + this.DeliveryAddress.GetHashCode();
if (this.Description != null)
hashCode = hashCode * 59 + this.Description.GetHashCode();
if (this.ExpiresAt != null)
hashCode = hashCode * 59 + this.ExpiresAt.GetHashCode();
if (this.Id != null)
hashCode = hashCode * 59 + this.Id.GetHashCode();
if (this.LineItems != null)
hashCode = hashCode * 59 + this.LineItems.GetHashCode();
if (this.MerchantAccount != null)
hashCode = hashCode * 59 + this.MerchantAccount.GetHashCode();
if (this.MerchantOrderReference != null)
hashCode = hashCode * 59 + this.MerchantOrderReference.GetHashCode();
if (this.RecurringProcessingModel != null)
hashCode = hashCode * 59 + this.RecurringProcessingModel.GetHashCode();
if (this.Reference != null)
hashCode = hashCode * 59 + this.Reference.GetHashCode();
if (this.ReturnUrl != null)
hashCode = hashCode * 59 + this.ReturnUrl.GetHashCode();
if (this.Reusable != null)
hashCode = hashCode * 59 + this.Reusable.GetHashCode();
if (this.RiskData != null)
hashCode = hashCode * 59 + this.RiskData.GetHashCode();
if (this.ShopperEmail != null)
hashCode = hashCode * 59 + this.ShopperEmail.GetHashCode();
if (this.ShopperLocale != null)
hashCode = hashCode * 59 + this.ShopperLocale.GetHashCode();
if (this.ShopperName != null)
hashCode = hashCode * 59 + this.ShopperName.GetHashCode();
if (this.ShopperReference != null)
hashCode = hashCode * 59 + this.ShopperReference.GetHashCode();
if (this.Splits != null)
hashCode = hashCode * 59 + this.Splits.GetHashCode();
if (this.Status != null)
hashCode = hashCode * 59 + this.Status.GetHashCode();
if (this.Store != null)
hashCode = hashCode * 59 + this.Store.GetHashCode();
if (this.StorePaymentMethod != null)
hashCode = hashCode * 59 + this.StorePaymentMethod.GetHashCode();
if (this.Url != null)
hashCode = hashCode * 59 + this.Url.GetHashCode();
return hashCode;
}
}
19
View Source File : AccountInfo.cs
License : MIT License
Project Creator : Adyen
License : MIT License
Project Creator : Adyen
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.AccountAgeIndicator != null)
hashCode = hashCode * 59 + this.AccountAgeIndicator.GetHashCode();
if (this.AccountChangeDate != null)
hashCode = hashCode * 59 + this.AccountChangeDate.GetHashCode();
if (this.AccountChangeIndicator != null)
hashCode = hashCode * 59 + this.AccountChangeIndicator.GetHashCode();
if (this.AccountCreationDate != null)
hashCode = hashCode * 59 + this.AccountCreationDate.GetHashCode();
if (this.AccountType != null)
hashCode = hashCode * 59 + this.AccountType.GetHashCode();
if (this.AddCardAttemptsDay != null)
hashCode = hashCode * 59 + this.AddCardAttemptsDay.GetHashCode();
if (this.DeliveryAddressUsageDate != null)
hashCode = hashCode * 59 + this.DeliveryAddressUsageDate.GetHashCode();
if (this.DeliveryAddressUsageIndicator != null)
hashCode = hashCode * 59 + this.DeliveryAddressUsageIndicator.GetHashCode();
if (this.HomePhone != null)
hashCode = hashCode * 59 + this.HomePhone.GetHashCode();
if (this.MobilePhone != null)
hashCode = hashCode * 59 + this.MobilePhone.GetHashCode();
if (this.PreplacedwordChangeDate != null)
hashCode = hashCode * 59 + this.PreplacedwordChangeDate.GetHashCode();
if (this.PreplacedwordChangeIndicator != null)
hashCode = hashCode * 59 + this.PreplacedwordChangeIndicator.GetHashCode();
if (this.PastTransactionsDay != null)
hashCode = hashCode * 59 + this.PastTransactionsDay.GetHashCode();
if (this.PastTransactionsYear != null)
hashCode = hashCode * 59 + this.PastTransactionsYear.GetHashCode();
if (this.PaymentAccountAge != null)
hashCode = hashCode * 59 + this.PaymentAccountAge.GetHashCode();
if (this.PaymentAccountIndicator != null)
hashCode = hashCode * 59 + this.PaymentAccountIndicator.GetHashCode();
if (this.PurchasesLast6Months != null)
hashCode = hashCode * 59 + this.PurchasesLast6Months.GetHashCode();
if (this.SuspiciousActivity != null)
hashCode = hashCode * 59 + this.SuspiciousActivity.GetHashCode();
if (this.WorkPhone != null)
hashCode = hashCode * 59 + this.WorkPhone.GetHashCode();
return hashCode;
}
}
19
View Source File : ForexQuote.cs
License : MIT License
Project Creator : Adyen
License : MIT License
Project Creator : Adyen
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.Account != null)
hashCode = hashCode * 59 + this.Account.GetHashCode();
if (this.AccountType != null)
hashCode = hashCode * 59 + this.AccountType.GetHashCode();
if (this.BaseAmount != null)
hashCode = hashCode * 59 + this.BaseAmount.GetHashCode();
if (this.BasePoints != null)
hashCode = hashCode * 59 + this.BasePoints.GetHashCode();
if (this.Buy != null)
hashCode = hashCode * 59 + this.Buy.GetHashCode();
if (this.Interbank != null)
hashCode = hashCode * 59 + this.Interbank.GetHashCode();
if (this.Reference != null)
hashCode = hashCode * 59 + this.Reference.GetHashCode();
if (this.Sell != null)
hashCode = hashCode * 59 + this.Sell.GetHashCode();
if (this.Signature != null)
hashCode = hashCode * 59 + this.Signature.GetHashCode();
if (this.Source != null)
hashCode = hashCode * 59 + this.Source.GetHashCode();
if (this.Type != null)
hashCode = hashCode * 59 + this.Type.GetHashCode();
if (this.ValidTill != null)
hashCode = hashCode * 59 + this.ValidTill.GetHashCode();
return hashCode;
}
}
19
View Source File : Recurring.cs
License : MIT License
Project Creator : Adyen
License : MIT License
Project Creator : Adyen
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.Contract != null)
hashCode = hashCode * 59 + this.Contract.GetHashCode();
if (this.RecurringDetailName != null)
hashCode = hashCode * 59 + this.RecurringDetailName.GetHashCode();
if (this.RecurringExpiry != null)
hashCode = hashCode * 59 + this.RecurringExpiry.GetHashCode();
if (this.RecurringFrequency != null)
hashCode = hashCode * 59 + this.RecurringFrequency.GetHashCode();
if (this.TokenService != null)
hashCode = hashCode * 59 + this.TokenService.GetHashCode();
return hashCode;
}
}
19
View Source File : Transaction.cs
License : MIT License
Project Creator : Adyen
License : MIT License
Project Creator : Adyen
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.Amount != null)
hashCode = hashCode * 59 + this.Amount.GetHashCode();
if (this.BankAccountDetail != null)
hashCode = hashCode * 59 + this.BankAccountDetail.GetHashCode();
if (this.CaptureMerchantReference != null)
hashCode = hashCode * 59 + this.CaptureMerchantReference.GetHashCode();
if (this.CapturePspReference != null)
hashCode = hashCode * 59 + this.CapturePspReference.GetHashCode();
if (this.CreationDate != null)
hashCode = hashCode * 59 + this.CreationDate.GetHashCode();
if (this.Description != null)
hashCode = hashCode * 59 + this.Description.GetHashCode();
if (this.DestinationAccountCode != null)
hashCode = hashCode * 59 + this.DestinationAccountCode.GetHashCode();
if (this.DisputePspReference != null)
hashCode = hashCode * 59 + this.DisputePspReference.GetHashCode();
if (this.DisputeReasonCode != null)
hashCode = hashCode * 59 + this.DisputeReasonCode.GetHashCode();
if (this.MerchantReference != null)
hashCode = hashCode * 59 + this.MerchantReference.GetHashCode();
if (this.PaymentPspReference != null)
hashCode = hashCode * 59 + this.PaymentPspReference.GetHashCode();
if (this.PayoutPspReference != null)
hashCode = hashCode * 59 + this.PayoutPspReference.GetHashCode();
if (this.PspReference != null)
hashCode = hashCode * 59 + this.PspReference.GetHashCode();
if (this.SourceAccountCode != null)
hashCode = hashCode * 59 + this.SourceAccountCode.GetHashCode();
if (this.TransactionStatus != null)
hashCode = hashCode * 59 + this.TransactionStatus.GetHashCode();
if (this.TransferCode != null)
hashCode = hashCode * 59 + this.TransferCode.GetHashCode();
return hashCode;
}
}
19
View Source File : AccountEvent.cs
License : MIT License
Project Creator : Adyen
License : MIT License
Project Creator : Adyen
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
hashCode = hashCode * 59 + this.Event.GetHashCode();
if (this.ExecutionDate != null)
hashCode = hashCode * 59 + this.ExecutionDate.GetHashCode();
if (this.Reason != null)
hashCode = hashCode * 59 + this.Reason.GetHashCode();
return hashCode;
}
}
19
View Source File : PayoutScheduleResponse.cs
License : MIT License
Project Creator : Adyen
License : MIT License
Project Creator : Adyen
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.NextScheduledPayout != null)
hashCode = hashCode * 59 + this.NextScheduledPayout.GetHashCode();
hashCode = hashCode * 59 + this.Schedule.GetHashCode();
return hashCode;
}
}
19
View Source File : GetAccountHolderResponse.cs
License : MIT License
Project Creator : Adyen
License : MIT License
Project Creator : Adyen
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.AccountHolderCode != null)
hashCode = hashCode * 59 + this.AccountHolderCode.GetHashCode();
if (this.AccountHolderDetails != null)
hashCode = hashCode * 59 + this.AccountHolderDetails.GetHashCode();
if (this.AccountHolderStatus != null)
hashCode = hashCode * 59 + this.AccountHolderStatus.GetHashCode();
if (this.Accounts != null)
hashCode = hashCode * 59 + this.Accounts.GetHashCode();
if (this.Description != null)
hashCode = hashCode * 59 + this.Description.GetHashCode();
if (this.InvalidFields != null)
hashCode = hashCode * 59 + this.InvalidFields.GetHashCode();
hashCode = hashCode * 59 + this.LegalEnreplacedy.GetHashCode();
if (this.PrimaryCurrency != null)
hashCode = hashCode * 59 + this.PrimaryCurrency.GetHashCode();
if (this.PspReference != null)
hashCode = hashCode * 59 + this.PspReference.GetHashCode();
if (this.ResultCode != null)
hashCode = hashCode * 59 + this.ResultCode.GetHashCode();
if (this.SystemUpToDateTime != null)
hashCode = hashCode * 59 + this.SystemUpToDateTime.GetHashCode();
if (this.Verification != null)
hashCode = hashCode * 59 + this.Verification.GetHashCode();
return hashCode;
}
}
19
View Source File : RecurringDetail.cs
License : MIT License
Project Creator : Adyen
License : MIT License
Project Creator : Adyen
public override int GetHashCode()
{
// credit: http://stackoverflow.com/a/263416/677735
unchecked // Overflow is fine, just wrap
{
int hash = 41;
// Suitable nullity checks etc, of course :)
if (this.SocialSecurityNumber != null)
hash = hash * 59 + this.SocialSecurityNumber.GetHashCode();
if (this.FirstPspReference != null)
hash = hash * 59 + this.FirstPspReference.GetHashCode();
if (this.CreationDate != null)
hash = hash * 59 + this.CreationDate.GetHashCode();
if (this.Acquirer != null)
hash = hash * 59 + this.Acquirer.GetHashCode();
if (this.Bank != null)
hash = hash * 59 + this.Bank.GetHashCode();
if (this.ShopperName != null)
hash = hash * 59 + this.ShopperName.GetHashCode();
if (this.AcquirerAccount != null)
hash = hash * 59 + this.AcquirerAccount.GetHashCode();
if (this.AliasType != null)
hash = hash * 59 + this.AliasType.GetHashCode();
if (this.Name != null)
hash = hash * 59 + this.Name.GetHashCode();
if (this.Variant != null)
hash = hash * 59 + this.Variant.GetHashCode();
if (this.RecurringDetailReference != null)
hash = hash * 59 + this.RecurringDetailReference.GetHashCode();
if (this.Alias != null)
hash = hash * 59 + this.Alias.GetHashCode();
if (this.ContractTypes != null)
hash = hash * 59 + this.ContractTypes.GetHashCode();
if (this.PaymentMethodVariant != null)
hash = hash * 59 + this.PaymentMethodVariant.GetHashCode();
if (this.BillingAddress != null)
hash = hash * 59 + this.BillingAddress.GetHashCode();
if (this.AdditionalData != null)
hash = hash * 59 + this.AdditionalData.GetHashCode();
if (this.Card != null)
hash = hash * 59 + this.Card.GetHashCode();
return hash;
}
}
19
View Source File : RecurringDetailsResult.cs
License : MIT License
Project Creator : Adyen
License : MIT License
Project Creator : Adyen
public override int GetHashCode()
{
// credit: http://stackoverflow.com/a/263416/677735
unchecked // Overflow is fine, just wrap
{
int hash = 41;
// Suitable nullity checks etc, of course :)
if (this.LastKnownShopperEmail != null)
hash = hash * 59 + this.LastKnownShopperEmail.GetHashCode();
if (this.CreationDate != null)
hash = hash * 59 + this.CreationDate.GetHashCode();
if (this.Details != null)
hash = hash * 59 + this.Details.GetHashCode();
if (this.ShopperReference != null)
hash = hash * 59 + this.ShopperReference.GetHashCode();
return hash;
}
}
19
View Source File : ProcessExtensions.cs
License : GNU General Public License v3.0
Project Creator : aglab2
License : GNU General Public License v3.0
Project Creator : aglab2
public static ProcessModuleWow64Safe[] ModulesWow64Safe(this Process p)
{
if (ModuleCache.Count > 100)
ModuleCache.Clear();
const int LIST_MODULES_ALL = 3;
const int MAX_PATH = 260;
var hModules = new IntPtr[1024];
uint cb = (uint)IntPtr.Size*(uint)hModules.Length;
uint cbNeeded;
if (!WinAPI.EnumProcessModulesEx(p.Handle, hModules, cb, out cbNeeded, LIST_MODULES_ALL))
throw new Win32Exception();
uint numMods = cbNeeded / (uint)IntPtr.Size;
int hash = p.StartTime.GetHashCode() + p.Id + (int)numMods;
if (ModuleCache.ContainsKey(hash))
return ModuleCache[hash];
var ret = new List<ProcessModuleWow64Safe>();
// everything below is fairly expensive, which is why we cache!
var sb = new StringBuilder(MAX_PATH);
for (int i = 0; i < numMods; i++)
{
sb.Clear();
if (WinAPI.GetModuleFileNameEx(p.Handle, hModules[i], sb, (uint)sb.Capacity) == 0)
throw new Win32Exception();
string fileName = sb.ToString();
sb.Clear();
if (WinAPI.GetModuleBaseName(p.Handle, hModules[i], sb, (uint)sb.Capacity) == 0)
throw new Win32Exception();
string baseName = sb.ToString();
var moduleInfo = new WinAPI.MODULEINFO();
if (!WinAPI.GetModuleInformation(p.Handle, hModules[i], out moduleInfo, (uint)Marshal.SizeOf(moduleInfo)))
throw new Win32Exception();
ret.Add(new ProcessModuleWow64Safe()
{
FileName = fileName,
BaseAddress = moduleInfo.lpBaseOfDll,
ModuleMemorySize = (int)moduleInfo.SizeOfImage,
EntryPointAddress = moduleInfo.EntryPoint,
ModuleName = baseName
});
}
ModuleCache.Add(hash, ret.ToArray());
return ret.ToArray();
}
19
View Source File : GPGKey.cs
License : BSD 3-Clause "New" or "Revised" License
Project Creator : Altinn
License : BSD 3-Clause "New" or "Revised" License
Project Creator : Altinn
public override int GetHashCode()
{
// Overflow is fine, just wrap
unchecked
{
int hashCode = 41;
if (this.CanCertify != null)
{
hashCode = (hashCode * 59) + this.CanCertify.GetHashCode();
}
if (this.CanEncryptComms != null)
{
hashCode = (hashCode * 59) + this.CanEncryptComms.GetHashCode();
}
if (this.CanEncryptStorage != null)
{
hashCode = (hashCode * 59) + this.CanEncryptStorage.GetHashCode();
}
if (this.CanSign != null)
{
hashCode = (hashCode * 59) + this.CanSign.GetHashCode();
}
if (this.CreatedAt != null)
{
hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode();
}
if (this.Emails != null)
{
hashCode = (hashCode * 59) + this.Emails.GetHashCode();
}
if (this.ExpiresAt != null)
{
hashCode = (hashCode * 59) + this.ExpiresAt.GetHashCode();
}
if (this.Id != null)
{
hashCode = (hashCode * 59) + this.Id.GetHashCode();
}
if (this.KeyId != null)
{
hashCode = (hashCode * 59) + this.KeyId.GetHashCode();
}
if (this.PrimaryKeyId != null)
{
hashCode = (hashCode * 59) + this.PrimaryKeyId.GetHashCode();
}
if (this.PublicKey != null)
{
hashCode = (hashCode * 59) + this.PublicKey.GetHashCode();
}
if (this.Subkeys != null)
{
hashCode = (hashCode * 59) + this.Subkeys.GetHashCode();
}
return hashCode;
}
}
19
View Source File : PublicKey.cs
License : BSD 3-Clause "New" or "Revised" License
Project Creator : Altinn
License : BSD 3-Clause "New" or "Revised" License
Project Creator : Altinn
public override int GetHashCode()
{
// Overflow is fine, just wrap
unchecked
{
int hashCode = 41;
if (this.CreatedAt != null)
{
hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode();
}
if (this.Fingerprint != null)
{
hashCode = (hashCode * 59) + this.Fingerprint.GetHashCode();
}
if (this.Id != null)
{
hashCode = (hashCode * 59) + this.Id.GetHashCode();
}
if (this.Key != null)
{
hashCode = (hashCode * 59) + this.Key.GetHashCode();
}
if (this.replacedle != null)
{
hashCode = (hashCode * 59) + this.replacedle.GetHashCode();
}
if (this.Url != null)
{
hashCode = (hashCode * 59) + this.Url.GetHashCode();
}
return hashCode;
}
}
19
View Source File : Repository.cs
License : BSD 3-Clause "New" or "Revised" License
Project Creator : Altinn
License : BSD 3-Clause "New" or "Revised" License
Project Creator : Altinn
public override int GetHashCode()
{
// Overflow is fine, just wrap
unchecked
{
int hashCode = 41;
if (this.CloneUrl != null)
{
hashCode = (hashCode * 59) + this.CloneUrl.GetHashCode();
}
if (this.CreatedAt != null)
{
hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode();
}
if (this.DefaultBranch != null)
{
hashCode = (hashCode * 59) + this.DefaultBranch.GetHashCode();
}
if (this.Description != null)
{
hashCode = (hashCode * 59) + this.Description.GetHashCode();
}
if (this.Empty != null)
{
hashCode = (hashCode * 59) + this.Empty.GetHashCode();
}
if (this.Fork != null)
{
hashCode = (hashCode * 59) + this.Fork.GetHashCode();
}
if (this.ForksCount != null)
{
hashCode = (hashCode * 59) + this.ForksCount.GetHashCode();
}
if (this.FullName != null)
{
hashCode = (hashCode * 59) + this.FullName.GetHashCode();
}
if (this.HtmlUrl != null)
{
hashCode = (hashCode * 59) + this.HtmlUrl.GetHashCode();
}
if (this.Id != null)
{
hashCode = (hashCode * 59) + this.Id.GetHashCode();
}
if (this.Mirror != null)
{
hashCode = (hashCode * 59) + this.Mirror.GetHashCode();
}
if (this.Name != null)
{
hashCode = (hashCode * 59) + this.Name.GetHashCode();
}
if (this.OreplacedsuesCount != null)
{
hashCode = (hashCode * 59) + this.OreplacedsuesCount.GetHashCode();
}
if (this.Owner != null)
{
hashCode = (hashCode * 59) + this.Owner.GetHashCode();
}
if (this.Parent != null)
{
hashCode = (hashCode * 59) + this.Parent.GetHashCode();
}
if (this.Permissions != null)
{
hashCode = (hashCode * 59) + this.Permissions.GetHashCode();
}
if (this.IsPrivate != null)
{
hashCode = (hashCode * 59) + this.IsPrivate.GetHashCode();
}
if (this.Size != null)
{
hashCode = (hashCode * 59) + this.Size.GetHashCode();
}
if (this.SshUrl != null)
{
hashCode = (hashCode * 59) + this.SshUrl.GetHashCode();
}
if (this.StarsCount != null)
{
hashCode = (hashCode * 59) + this.StarsCount.GetHashCode();
}
if (this.UpdatedAt != null)
{
hashCode = (hashCode * 59) + this.UpdatedAt.GetHashCode();
}
if (this.WatchersCount != null)
{
hashCode = (hashCode * 59) + this.WatchersCount.GetHashCode();
}
if (this.Website != null)
{
hashCode = (hashCode * 59) + this.Website.GetHashCode();
}
return hashCode;
}
}
19
View Source File : TrackedTime.cs
License : BSD 3-Clause "New" or "Revised" License
Project Creator : Altinn
License : BSD 3-Clause "New" or "Revised" License
Project Creator : Altinn
public override int GetHashCode()
{
// Overflow is fine, just wrap
unchecked
{
int hashCode = 41;
if (this.Created != null)
{
hashCode = (hashCode * 59) + this.Created.GetHashCode();
}
if (this.Id != null)
{
hashCode = (hashCode * 59) + this.Id.GetHashCode();
}
if (this.IssueId != null)
{
hashCode = (hashCode * 59) + this.IssueId.GetHashCode();
}
if (this.Time != null)
{
hashCode = (hashCode * 59) + this.Time.GetHashCode();
}
if (this.UserId != null)
{
hashCode = (hashCode * 59) + this.UserId.GetHashCode();
}
return hashCode;
}
}
19
View Source File : Person.cs
License : MIT License
Project Creator : Andyhacool
License : MIT License
Project Creator : Andyhacool
protected override int GetHashCodeCore()
{
unchecked
{
int hashCode = FirstName.GetHashCode();
hashCode = (hashCode * 397) ^ LastName.GetHashCode();
hashCode = (hashCode * 397) ^ Gender.GetHashCode();
hashCode = (hashCode * 397) ^ Dob.GetHashCode();
return hashCode;
}
}
19
View Source File : BaseAttributesCreatedUpdatedAttributes.cs
License : Apache License 2.0
Project Creator : Autodesk-Forge
License : Apache License 2.0
Project Creator : Autodesk-Forge
public override int GetHashCode()
{
// credit: http://stackoverflow.com/a/263416/677735
unchecked // Overflow is fine, just wrap
{
int hash = 41;
// Suitable nullity checks etc, of course :)
if (this.CreateTime != null)
hash = hash * 59 + this.CreateTime.GetHashCode();
if (this.CreateUserId != null)
hash = hash * 59 + this.CreateUserId.GetHashCode();
if (this.LastModifiedTime != null)
hash = hash * 59 + this.LastModifiedTime.GetHashCode();
if (this.LastModifiedUserId != null)
hash = hash * 59 + this.LastModifiedUserId.GetHashCode();
return hash;
}
}
19
View Source File : IndexingPrimitives.cs
License : MIT License
Project Creator : azist
License : MIT License
Project Creator : azist
public override int GetHashCode() => Value.GetHashCode() ^ Bookmark.GetHashCode();
19
View Source File : DateRange.cs
License : MIT License
Project Creator : azist
License : MIT License
Project Creator : azist
public override int GetHashCode() => Start.GetHashCode() ^ End.GetHashCode();
19
View Source File : MergeCacheEntry.cs
License : The Unlicense
Project Creator : BattletechModders
License : The Unlicense
Project Creator : BattletechModders
public override int GetHashCode()
{
unchecked
{
var hashCode = (CachedPath != null ? CachedPath.GetHashCode() : 0);
hashCode = (hashCode * 397) ^ OriginalUpdatedOn.GetHashCode();
hashCode = (hashCode * 397) ^ (Merges != null ? Merges.GetHashCode() : 0);
return hashCode;
}
}
19
View Source File : FileVersionTuple.cs
License : The Unlicense
Project Creator : BattletechModders
License : The Unlicense
Project Creator : BattletechModders
public override int GetHashCode()
{
unchecked
{
var hashCode = (replacedetBundleName != null ? replacedetBundleName.GetHashCode() : 0);
hashCode = (hashCode * 397) ^ (Path != null ? Path.GetHashCode() : 0);
hashCode = (hashCode * 397) ^ UpdatedOn.GetHashCode();
return hashCode;
}
}
19
View Source File : NetDetail.cs
License : MIT License
Project Creator : Berrysoft
License : MIT License
Project Creator : Berrysoft
public override int GetHashCode() => LoginTime.GetHashCode() ^ LogoutTime.GetHashCode() ^ Flux.GetHashCode();
19
View Source File : NetUser.cs
License : MIT License
Project Creator : Berrysoft
License : MIT License
Project Creator : Berrysoft
public override int GetHashCode() => (Address?.GetHashCode() ?? 0) ^ LoginTime.GetHashCode() ^ (MacAddress?.GetHashCode() ?? 0);
19
View Source File : ReplayFile.cs
License : MIT License
Project Creator : Bphots
License : MIT License
Project Creator : Bphots
public int GetHashCode(ReplayFile obj)
{
return obj.Filename.GetHashCode() ^ obj.Created.GetHashCode();
}
19
View Source File : DayPeriod.cs
License : Apache License 2.0
Project Creator : BuffettCode
License : Apache License 2.0
Project Creator : BuffettCode
public override int GetHashCode() => value.GetHashCode();
19
View Source File : ActivatedJob.cs
License : Apache License 2.0
Project Creator : camunda-community-hub
License : Apache License 2.0
Project Creator : camunda-community-hub
public override int GetHashCode()
{
unchecked
{
var hashCode = Key.GetHashCode();
hashCode = (hashCode * 397) ^ (Type != null ? Type.GetHashCode() : 0);
hashCode = (hashCode * 397) ^ ProcessInstanceKey.GetHashCode();
hashCode = (hashCode * 397) ^ (BpmnProcessId != null ? BpmnProcessId.GetHashCode() : 0);
hashCode = (hashCode * 397) ^ ProcessDefinitionVersion;
hashCode = (hashCode * 397) ^ ProcessDefinitionKey.GetHashCode();
hashCode = (hashCode * 397) ^ (ElementId != null ? ElementId.GetHashCode() : 0);
hashCode = (hashCode * 397) ^ ElementInstanceKey.GetHashCode();
hashCode = (hashCode * 397) ^ (Worker != null ? Worker.GetHashCode() : 0);
hashCode = (hashCode * 397) ^ Retries;
hashCode = (hashCode * 397) ^ Deadline.GetHashCode();
hashCode = (hashCode * 397) ^ (Variables != null ? Variables.GetHashCode() : 0);
hashCode = (hashCode * 397) ^ (CustomHeaders != null ? CustomHeaders.GetHashCode() : 0);
return hashCode;
}
}
19
View Source File : PositionModel.cs
License : Apache License 2.0
Project Creator : Capnode
License : Apache License 2.0
Project Creator : Capnode
public override int GetHashCode()
{
// credit: http://stackoverflow.com/a/263416/677735
unchecked // Overflow is fine, just wrap
{
int hash = 41;
// Suitable nullity checks etc, of course :)
if (Symbol != null)
hash = hash * 59 + Symbol.GetHashCode();
hash = hash * 59 + Quanreplacedy.GetHashCode();
hash = hash * 59 + AveragePrice.GetHashCode();
hash = hash * 59 + MarketPrice.GetHashCode();
hash = hash * 59 + MarketValue.GetHashCode();
hash = hash * 59 + EntryValue.GetHashCode();
hash = hash * 59 + UpdateTime.GetHashCode();
return hash;
}
}
19
View Source File : MapFileRow.cs
License : Apache License 2.0
Project Creator : Capnode
License : Apache License 2.0
Project Creator : Capnode
public override int GetHashCode()
{
unchecked
{
return (Date.GetHashCode() * 397) ^
(MappedSymbol != null ? MappedSymbol.GetHashCode() : 0) ^
(PrimaryExchange.GetHashCode());
}
}
19
View Source File : ScriptFileId.cs
License : MIT License
Project Creator : cdiggins
License : MIT License
Project Creator : cdiggins
public override int GetHashCode()
{
unchecked
{
int hash = 17;
hash = hash * 31 + Length.GetHashCode();
hash = hash * 31 + LastWriteTime.GetHashCode();
hash = hash * 31 + Path.GetHashCode();
return hash;
}
}
19
View Source File : cef_time_t.cs
License : MIT License
Project Creator : CefNet
License : MIT License
Project Creator : CefNet
public override int GetHashCode()
{
return new DateTime(year, month, day_of_month, hour, minute, second, millisecond, DateTimeKind.Utc).GetHashCode();
}
19
View Source File : CollectionItem.cs
License : MIT License
Project Creator : circles-arrows
License : MIT License
Project Creator : circles-arrows
public override int GetHashCode()
{
return
(Parent?.GetHashCode() ?? 0) ^
(Item?.GetHashCode() ?? 0) ^
(StartDate.GetHashCode()) ^
(EndDate.GetHashCode());
}
19
View Source File : BikeWorkoutData.cs
License : GNU General Public License v3.0
Project Creator : codaris
License : GNU General Public License v3.0
Project Creator : codaris
public override int GetHashCode()
{
return Timestamp.GetHashCode()
^ Second.GetHashCode()
^ DistanceMiles.GetHashCode()
^ WorkoutTime.GetHashCode()
^ SpeedMph.GetHashCode()
^ RotationsPerMinute.GetHashCode()
^ Unknown1.GetHashCode()
^ SpeedValue.GetHashCode()
^ Unknown2.GetHashCode()
^ Unknown3.GetHashCode();
}
19
View Source File : OrderExecutionReport.cs
License : MIT License
Project Creator : coinapi
License : MIT License
Project Creator : coinapi
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.ExchangeId != null)
hashCode = hashCode * 59 + this.ExchangeId.GetHashCode();
if (this.ClientOrderId != null)
hashCode = hashCode * 59 + this.ClientOrderId.GetHashCode();
if (this.SymbolIdExchange != null)
hashCode = hashCode * 59 + this.SymbolIdExchange.GetHashCode();
if (this.SymbolIdCoinapi != null)
hashCode = hashCode * 59 + this.SymbolIdCoinapi.GetHashCode();
if (this.AmountOrder != null)
hashCode = hashCode * 59 + this.AmountOrder.GetHashCode();
if (this.Price != null)
hashCode = hashCode * 59 + this.Price.GetHashCode();
if (this.Side != null)
hashCode = hashCode * 59 + this.Side.GetHashCode();
if (this.OrderType != null)
hashCode = hashCode * 59 + this.OrderType.GetHashCode();
if (this.TimeInForce != null)
hashCode = hashCode * 59 + this.TimeInForce.GetHashCode();
if (this.ExpireTime != null)
hashCode = hashCode * 59 + this.ExpireTime.GetHashCode();
if (this.ExecInst != null)
hashCode = hashCode * 59 + this.ExecInst.GetHashCode();
if (this.ClientOrderIdFormatExchange != null)
hashCode = hashCode * 59 + this.ClientOrderIdFormatExchange.GetHashCode();
if (this.ExchangeOrderId != null)
hashCode = hashCode * 59 + this.ExchangeOrderId.GetHashCode();
if (this.AmountOpen != null)
hashCode = hashCode * 59 + this.AmountOpen.GetHashCode();
if (this.AmountFilled != null)
hashCode = hashCode * 59 + this.AmountFilled.GetHashCode();
if (this.AvgPx != null)
hashCode = hashCode * 59 + this.AvgPx.GetHashCode();
if (this.Status != null)
hashCode = hashCode * 59 + this.Status.GetHashCode();
if (this.StatusHistory != null)
hashCode = hashCode * 59 + this.StatusHistory.GetHashCode();
if (this.ErrorMessage != null)
hashCode = hashCode * 59 + this.ErrorMessage.GetHashCode();
if (this.Fills != null)
hashCode = hashCode * 59 + this.Fills.GetHashCode();
return hashCode;
}
}
19
View Source File : OrderNewSingleRequest.cs
License : MIT License
Project Creator : coinapi
License : MIT License
Project Creator : coinapi
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.ExchangeId != null)
hashCode = hashCode * 59 + this.ExchangeId.GetHashCode();
if (this.ClientOrderId != null)
hashCode = hashCode * 59 + this.ClientOrderId.GetHashCode();
if (this.SymbolIdExchange != null)
hashCode = hashCode * 59 + this.SymbolIdExchange.GetHashCode();
if (this.SymbolIdCoinapi != null)
hashCode = hashCode * 59 + this.SymbolIdCoinapi.GetHashCode();
if (this.AmountOrder != null)
hashCode = hashCode * 59 + this.AmountOrder.GetHashCode();
if (this.Price != null)
hashCode = hashCode * 59 + this.Price.GetHashCode();
if (this.Side != null)
hashCode = hashCode * 59 + this.Side.GetHashCode();
if (this.OrderType != null)
hashCode = hashCode * 59 + this.OrderType.GetHashCode();
if (this.TimeInForce != null)
hashCode = hashCode * 59 + this.TimeInForce.GetHashCode();
if (this.ExpireTime != null)
hashCode = hashCode * 59 + this.ExpireTime.GetHashCode();
if (this.ExecInst != null)
hashCode = hashCode * 59 + this.ExecInst.GetHashCode();
return hashCode;
}
}
19
View Source File : OrderExecutionReport.cs
License : MIT License
Project Creator : coinapi
License : MIT License
Project Creator : coinapi
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.ExchangeId != null)
hashCode = hashCode * 59 + this.ExchangeId.GetHashCode();
if (this.ClientOrderId != null)
hashCode = hashCode * 59 + this.ClientOrderId.GetHashCode();
if (this.SymbolIdExchange != null)
hashCode = hashCode * 59 + this.SymbolIdExchange.GetHashCode();
if (this.SymbolIdCoinapi != null)
hashCode = hashCode * 59 + this.SymbolIdCoinapi.GetHashCode();
hashCode = hashCode * 59 + this.AmountOrder.GetHashCode();
hashCode = hashCode * 59 + this.Price.GetHashCode();
hashCode = hashCode * 59 + this.Side.GetHashCode();
hashCode = hashCode * 59 + this.OrderType.GetHashCode();
hashCode = hashCode * 59 + this.TimeInForce.GetHashCode();
if (this.ExpireTime != null)
hashCode = hashCode * 59 + this.ExpireTime.GetHashCode();
hashCode = hashCode * 59 + this.ExecInst.GetHashCode();
if (this.ClientOrderIdFormatExchange != null)
hashCode = hashCode * 59 + this.ClientOrderIdFormatExchange.GetHashCode();
if (this.ExchangeOrderId != null)
hashCode = hashCode * 59 + this.ExchangeOrderId.GetHashCode();
hashCode = hashCode * 59 + this.AmountOpen.GetHashCode();
hashCode = hashCode * 59 + this.AmountFilled.GetHashCode();
hashCode = hashCode * 59 + this.AvgPx.GetHashCode();
hashCode = hashCode * 59 + this.Status.GetHashCode();
if (this.StatusHistory != null)
hashCode = hashCode * 59 + this.StatusHistory.GetHashCode();
if (this.ErrorMessage != null)
hashCode = hashCode * 59 + this.ErrorMessage.GetHashCode();
if (this.Fills != null)
hashCode = hashCode * 59 + this.Fills.GetHashCode();
return hashCode;
}
}
19
View Source File : Fills.cs
License : MIT License
Project Creator : coinapi
License : MIT License
Project Creator : coinapi
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.Time != null)
hashCode = hashCode * 59 + this.Time.GetHashCode();
if (this.Price != null)
hashCode = hashCode * 59 + this.Price.GetHashCode();
if (this.Amount != null)
hashCode = hashCode * 59 + this.Amount.GetHashCode();
return hashCode;
}
}
19
View Source File : Fills.cs
License : MIT License
Project Creator : coinapi
License : MIT License
Project Creator : coinapi
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.Time != null)
hashCode = hashCode * 59 + this.Time.GetHashCode();
hashCode = hashCode * 59 + this.Price.GetHashCode();
hashCode = hashCode * 59 + this.Amount.GetHashCode();
return hashCode;
}
}
19
View Source File : OrderNewSingleRequest.cs
License : MIT License
Project Creator : coinapi
License : MIT License
Project Creator : coinapi
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.ExchangeId != null)
hashCode = hashCode * 59 + this.ExchangeId.GetHashCode();
if (this.ClientOrderId != null)
hashCode = hashCode * 59 + this.ClientOrderId.GetHashCode();
if (this.SymbolIdExchange != null)
hashCode = hashCode * 59 + this.SymbolIdExchange.GetHashCode();
if (this.SymbolIdCoinapi != null)
hashCode = hashCode * 59 + this.SymbolIdCoinapi.GetHashCode();
hashCode = hashCode * 59 + this.AmountOrder.GetHashCode();
hashCode = hashCode * 59 + this.Price.GetHashCode();
hashCode = hashCode * 59 + this.Side.GetHashCode();
hashCode = hashCode * 59 + this.OrderType.GetHashCode();
hashCode = hashCode * 59 + this.TimeInForce.GetHashCode();
if (this.ExpireTime != null)
hashCode = hashCode * 59 + this.ExpireTime.GetHashCode();
hashCode = hashCode * 59 + this.ExecInst.GetHashCode();
return hashCode;
}
}
19
View Source File : Extention.UrlHelper.cs
License : Apache License 2.0
Project Creator : Coldairarrow
License : Apache License 2.0
Project Creator : Coldairarrow
public static string Scrpit(this IUrlHelper helper, string scriptVirtualPath)
{
string filePath = helper.ActionContext.HttpContext.MapPath(scriptVirtualPath);
FileInfo fileInfo = new FileInfo(filePath);
var lastTime = fileInfo.LastWriteTime.GetHashCode();
return helper.Content($"{scriptVirtualPath}?_v={lastTime}");
}
19
View Source File : Extention.UrlHelper.cs
License : Apache License 2.0
Project Creator : Coldairarrow
License : Apache License 2.0
Project Creator : Coldairarrow
public static string Scrpit(this UrlHelper helper, string scriptVirtualPath)
{
string filePath = helper.RequestContext.HttpContext.Server.MapPath(scriptVirtualPath);
FileInfo fileInfo = new FileInfo(filePath);
var lastTime = fileInfo.LastWriteTime.GetHashCode();
return helper.Content($"{scriptVirtualPath}?_v={lastTime}");
}
19
View Source File : Extention.UrlHelper.cs
License : MIT License
Project Creator : Coldairarrow
License : MIT License
Project Creator : Coldairarrow
public static string Scrpit(this UrlHelper helper, string scriptVirtualPath)
{
int version = 0;
if(GlobalSwitch.RunModel== RunModel.LocalTest)
{
version = Guid.NewGuid().GetHashCode();
}
else
{
string filePath = helper.RequestContext.HttpContext.Server.MapPath(scriptVirtualPath);
FileInfo fileInfo = new FileInfo(filePath);
version = fileInfo.LastWriteTime.GetHashCode();
}
return helper.Content($"{scriptVirtualPath}?_v={version}");
}
19
View Source File : BtcUnconfirmedTransaction.cs
License : MIT License
Project Creator : Crypto-APIs
License : MIT License
Project Creator : Crypto-APIs
public override int GetHashCode()
{
unchecked
{
var hashCode = (Id != null ? Id.GetHashCode() : 0);
hashCode = (hashCode * 397) ^ (Hash != null ? Hash.GetHashCode() : 0);
hashCode = (hashCode * 397) ^ Version;
hashCode = (hashCode * 397) ^ Size;
hashCode = (hashCode * 397) ^ VSize;
hashCode = (hashCode * 397) ^ Locktime;
hashCode = (hashCode * 397) ^ (Time != null ? Time.GetHashCode() : 0);
hashCode = (hashCode * 397) ^ Timestamp.GetHashCode();
hashCode = (hashCode * 397) ^ (TxIns != null ? TxIns.GetHashCode() : 0);
hashCode = (hashCode * 397) ^ (TxOuts != null ? TxOuts.GetHashCode() : 0);
return hashCode;
}
}
19
View Source File : OHLCV.cs
License : MIT License
Project Creator : Crypto-APIs
License : MIT License
Project Creator : Crypto-APIs
public override int GetHashCode()
{
unchecked
{
var hashCode = ExchangeId != null ? ExchangeId.GetHashCode() : 0;
hashCode = (hashCode * 397) ^ (TradeType != null ? TradeType.GetHashCode() : 0);
hashCode = (hashCode * 397) ^ (Basereplacedet != null ? Basereplacedet.GetHashCode() : 0);
hashCode = (hashCode * 397) ^ (Quotereplacedet != null ? Quotereplacedet.GetHashCode() : 0);
hashCode = (hashCode * 397) ^ TimePeriodStart.GetHashCode();
hashCode = (hashCode * 397) ^ TimePeriodEnd.GetHashCode();
hashCode = (hashCode * 397) ^ TimeOpen.GetHashCode();
hashCode = (hashCode * 397) ^ TimeClose.GetHashCode();
hashCode = (hashCode * 397) ^ PriceOpen.GetHashCode();
hashCode = (hashCode * 397) ^ PriceClose.GetHashCode();
hashCode = (hashCode * 397) ^ PriceLow.GetHashCode();
hashCode = (hashCode * 397) ^ PriceHigh.GetHashCode();
hashCode = (hashCode * 397) ^ VolumeTraded.GetHashCode();
hashCode = (hashCode * 397) ^ TradesCount.GetHashCode();
hashCode = (hashCode * 397) ^ (Id != null ? Id.GetHashCode() : 0);
return hashCode;
}
}
19
View Source File : Trade.cs
License : MIT License
Project Creator : Crypto-APIs
License : MIT License
Project Creator : Crypto-APIs
public override int GetHashCode()
{
unchecked
{
var hashCode = (ExchangeId != null ? ExchangeId.GetHashCode() : 0);
hashCode = (hashCode * 397) ^ (Basereplacedet != null ? Basereplacedet.GetHashCode() : 0);
hashCode = (hashCode * 397) ^ (Quotereplacedet != null ? Quotereplacedet.GetHashCode() : 0);
hashCode = (hashCode * 397) ^ (TradeTypereplacedtring != null ? TradeTypereplacedtring.GetHashCode() : 0);
hashCode = (hashCode * 397) ^ (TradeDirectionreplacedtring != null ? TradeDirectionreplacedtring.GetHashCode() : 0);
hashCode = (hashCode * 397) ^ EventTime.GetHashCode();
hashCode = (hashCode * 397) ^ (ExchangeSequenceId != null ? ExchangeSequenceId.GetHashCode() : 0);
hashCode = (hashCode * 397) ^ Price.GetHashCode();
hashCode = (hashCode * 397) ^ Amount.GetHashCode();
return hashCode;
}
}
19
View Source File : Pair.cs
License : GNU Lesser General Public License v3.0
Project Creator : czsgeo
License : GNU Lesser General Public License v3.0
Project Creator : czsgeo
public override int GetHashCode()
{
return Time.GetHashCode() + 13 * Value.GetHashCode();
}
19
View Source File : SYSTEMTIME.cs
License : MIT License
Project Creator : dahall
License : MIT License
Project Creator : dahall
public override int GetHashCode() => ((DateTime)this).GetHashCode();
19
View Source File : DATE.cs
License : MIT License
Project Creator : dahall
License : MIT License
Project Creator : dahall
public override int GetHashCode() => Value.GetHashCode();
See More Examples