Here are the examples of the csharp api System.Enum.GetHashCode() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
604 Examples
19
View Source File : AttributesQueryContext.cs
License : MIT License
Project Creator : actions
License : MIT License
Project Creator : actions
public override int GetHashCode()
{
int hashCode = Scope.GetHashCode();
hashCode = (hashCode * 499) ^ (ContainerName != null ? ContainerName.ToLowerInvariant().GetHashCode() : 0);
hashCode = (hashCode * 499) ^ (ModifiedSince != null ? ModifiedSince.GetHashCode() : 0);
hashCode = (hashCode * 499) ^ (ModifiedAfterRevision != null ? ModifiedAfterRevision.GetHashCode() : 0);
hashCode = (hashCode * 499) ^ (CoreAttributes != null ? CoreAttributes.GetHashCode() : 0);
return hashCode;
}
19
View Source File : Name.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.FirstName != null)
hashCode = hashCode * 59 + this.FirstName.GetHashCode();
if (this.Gender != null)
hashCode = hashCode * 59 + this.Gender.GetHashCode();
if (this.Infix != null)
hashCode = hashCode * 59 + this.Infix.GetHashCode();
if (this.LastName != null)
hashCode = hashCode * 59 + this.LastName.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 : Split.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.Amount != null)
hashCode = hashCode * 59 + this.Amount.GetHashCode();
if (this.Description != null)
hashCode = hashCode * 59 + this.Description.GetHashCode();
if (this.Reference != null)
hashCode = hashCode * 59 + this.Reference.GetHashCode();
if (this.Type != null)
hashCode = hashCode * 59 + this.Type.GetHashCode();
return hashCode;
}
}
19
View Source File : CloseAccountResponse.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.InvalidFields != null)
hashCode = hashCode * 59 + this.InvalidFields.GetHashCode();
if (this.PspReference != null)
hashCode = hashCode * 59 + this.PspReference.GetHashCode();
if (this.ResultCode != null)
hashCode = hashCode * 59 + this.ResultCode.GetHashCode();
hashCode = hashCode * 59 + this.Status.GetHashCode();
return hashCode;
}
}
19
View Source File : CreateAccountResponse.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.AccountCode != null)
hashCode = hashCode * 59 + this.AccountCode.GetHashCode();
if (this.AccountHolderCode != null)
hashCode = hashCode * 59 + this.AccountHolderCode.GetHashCode();
if (this.Description != null)
hashCode = hashCode * 59 + this.Description.GetHashCode();
if (this.InvalidFields != null)
hashCode = hashCode * 59 + this.InvalidFields.GetHashCode();
if (this.Metadata != null)
hashCode = hashCode * 59 + this.Metadata.GetHashCode();
if (this.PayoutSchedule != null)
hashCode = hashCode * 59 + this.PayoutSchedule.GetHashCode();
if (this.PspReference != null)
hashCode = hashCode * 59 + this.PspReference.GetHashCode();
if (this.ResultCode != null)
hashCode = hashCode * 59 + this.ResultCode.GetHashCode();
hashCode = hashCode * 59 + this.Status.GetHashCode();
return hashCode;
}
}
19
View Source File : DocumentDetail.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.BankAccountUUID != null)
hashCode = hashCode * 59 + this.BankAccountUUID.GetHashCode();
if (this.Description != null)
hashCode = hashCode * 59 + this.Description.GetHashCode();
hashCode = hashCode * 59 + this.DoreplacedentType.GetHashCode();
if (this.Filename != null)
hashCode = hashCode * 59 + this.Filename.GetHashCode();
if (this.ShareholderCode != null)
hashCode = hashCode * 59 + this.ShareholderCode.GetHashCode();
return hashCode;
}
}
19
View Source File : UpdateAccountHolderResponse.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.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.Verification != null)
hashCode = hashCode * 59 + this.Verification.GetHashCode();
return hashCode;
}
}
19
View Source File : UpdateAccountHolderStateRequest.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.Disable != null)
hashCode = hashCode * 59 + this.Disable.GetHashCode();
if (this.Reason != null)
hashCode = hashCode * 59 + this.Reason.GetHashCode();
hashCode = hashCode * 59 + this.StateType.GetHashCode();
return hashCode;
}
}
19
View Source File : ViasName.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.FirstName != null)
hashCode = hashCode * 59 + this.FirstName.GetHashCode();
hashCode = hashCode * 59 + this.Gender.GetHashCode();
if (this.Infix != null)
hashCode = hashCode * 59 + this.Infix.GetHashCode();
if (this.LastName != null)
hashCode = hashCode * 59 + this.LastName.GetHashCode();
return hashCode;
}
}
19
View Source File : UpdatePaymentLinkRequest.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.Status != null)
hashCode = hashCode * 59 + this.Status.GetHashCode();
return hashCode;
}
}
19
View Source File : SubscriptionDetails.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.AmountRule != null)
hashCode = hashCode * 59 + this.AmountRule.GetHashCode();
if (this.BillingAttemptsRule != null)
hashCode = hashCode * 59 + this.BillingAttemptsRule.GetHashCode();
if (this.BillingDay != null)
hashCode = hashCode * 59 + this.BillingDay.GetHashCode();
if (this.EndAt != null)
hashCode = hashCode * 59 + this.EndAt.GetHashCode();
if (this.Frequency != null)
hashCode = hashCode * 59 + this.Frequency.GetHashCode();
if (this.Remarks != null)
hashCode = hashCode * 59 + this.Remarks.GetHashCode();
if (this.StartAt != null)
hashCode = hashCode * 59 + this.StartAt.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 : CreateAccountHolderResponse.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.AccountCode != null)
hashCode = hashCode * 59 + this.AccountCode.GetHashCode();
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.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.Verification != null)
hashCode = hashCode * 59 + this.Verification.GetHashCode();
return hashCode;
}
}
19
View Source File : AccountHolderStatus.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.Events != null)
hashCode = hashCode * 59 + this.Events.GetHashCode();
if (this.PayoutState != null)
hashCode = hashCode * 59 + this.PayoutState.GetHashCode();
if (this.ProcessingState != null)
hashCode = hashCode * 59 + this.ProcessingState.GetHashCode();
hashCode = hashCode * 59 + this.Status.GetHashCode();
if (this.StatusReason != null)
hashCode = hashCode * 59 + this.StatusReason.GetHashCode();
return hashCode;
}
}
19
View Source File : CreateAccountHolderRequest.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.CreateDefaultAccount != null)
hashCode = hashCode * 59 + this.CreateDefaultAccount.GetHashCode();
if (this.Description != null)
hashCode = hashCode * 59 + this.Description.GetHashCode();
hashCode = hashCode * 59 + this.LegalEnreplacedy.GetHashCode();
if (this.PrimaryCurrency != null)
hashCode = hashCode * 59 + this.PrimaryCurrency.GetHashCode();
if (this.ProcessingTier != null)
hashCode = hashCode * 59 + this.ProcessingTier.GetHashCode();
return hashCode;
}
}
19
View Source File : KYCCheckStatusData.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.RequiredFields != null)
hashCode = hashCode * 59 + this.RequiredFields.GetHashCode();
hashCode = hashCode * 59 + this.Status.GetHashCode();
if (this.Summary != null)
hashCode = hashCode * 59 + this.Summary.GetHashCode();
hashCode = hashCode * 59 + this.Type.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 : PersonalDocumentData.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.ExpirationDate != null)
hashCode = hashCode * 59 + this.ExpirationDate.GetHashCode();
if (this.IssuerCountry != null)
hashCode = hashCode * 59 + this.IssuerCountry.GetHashCode();
if (this.IssuerState != null)
hashCode = hashCode * 59 + this.IssuerState.GetHashCode();
if (this.Number != null)
hashCode = hashCode * 59 + this.Number.GetHashCode();
hashCode = hashCode * 59 + this.Type.GetHashCode();
return hashCode;
}
}
19
View Source File : PerformVerificationRequest.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();
hashCode = hashCode * 59 + this.AccountStateType.GetHashCode();
if (this.Tier != null)
hashCode = hashCode * 59 + this.Tier.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 : UpdatePayoutScheduleRequest.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.Action != null)
hashCode = hashCode * 59 + this.Action.GetHashCode();
if (this.Reason != null)
hashCode = hashCode * 59 + this.Reason.GetHashCode();
hashCode = hashCode * 59 + this.Schedule.GetHashCode();
return hashCode;
}
}
19
View Source File : Split.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.Amount != null)
hashCode = hashCode * 59 + this.Amount.GetHashCode();
if (this.Description != null)
hashCode = hashCode * 59 + this.Description.GetHashCode();
if (this.Reference != null)
hashCode = hashCode * 59 + this.Reference.GetHashCode();
hashCode = hashCode * 59 + this.Type.GetHashCode();
return hashCode;
}
}
19
View Source File : GraphCommand.cs
License : MIT License
Project Creator : alelievr
License : MIT License
Project Creator : alelievr
public override int GetHashCode()
{
return position.GetHashCode()
+ type.GetHashCode()
+ forcePositon.GetHashCode()
+ name.GetHashCode()
+ nodeType.GetHashCode()
+ fromNodeName.GetHashCode()
+ toNodeName.GetHashCode();
}
19
View Source File : TestWriter.cs
License : MIT License
Project Creator : AlexGhiondea
License : MIT License
Project Creator : AlexGhiondea
public override int GetHashCode()
{
return Color.GetHashCode() ^ Text.GetHashCode();
}
19
View Source File : StringFormatter.cs
License : MIT License
Project Creator : alexis-
License : MIT License
Project Creator : alexis-
public override int GetHashCode()
{
return Width.GetHashCode() ^ Content.GetHashCode() ^ Alignment.GetHashCode() ^ WordWrappingMethod.GetHashCode();
}
19
View Source File : TriggerConfigMeta.cs
License : MIT License
Project Creator : aliyun
License : MIT License
Project Creator : aliyun
public override int GetHashCode()
{
return string.Format("{0}_{1}",
AuthType.GetHashCode(), Methods.GetHashCode()).GetHashCode();
}
19
View Source File : KeyboardManager.cs
License : MIT License
Project Creator : anderm
License : MIT License
Project Creator : anderm
public override int GetHashCode()
{
return (KeyCode.GetHashCode() * 100) ^ KeyEvent.GetHashCode();
}
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 : Token.cs
License : MIT License
Project Creator : arbelatech
License : MIT License
Project Creator : arbelatech
public override int GetHashCode()
{
unchecked
{
var hashCode = Index;
hashCode = (hashCode*397) ^ Type.GetHashCode();
hashCode = (hashCode*397) ^ Value.GetHashCode();
return hashCode;
}
}
19
View Source File : AyDateBoxCalendar.cs
License : MIT License
Project Creator : ay2015
License : MIT License
Project Creator : ay2015
internal bool DateItemIsInValidRange(DateTime item)
{
bool returnResult = true;
if (DateRuleObjects.IsNotNull())
{
if (!DateRuleObjects.minDate.IsNullAndTrimAndEmpty())
{
//是否含有#F{ }
if (DateRuleObjects.minDate.IndexOf(@"#F{") == 0)
{
List<DateTime?> _4 = null;
if (DateRuleObjects.minDate.IndexOf("ay") > -1) //使用了绑定
{
if (MinDateReferToElement.IsNotNull())
{
string _text = MinDateReferToElement.Text;
string _dateRule = MinDateReferToElement.DateRule;
var ddo = AyJsonUtility.DecodeObject2<AyDateRuleJsonToObjects>(_dateRule);
if (ddo.IsNotNull())
{
_4 = AyDateStrictExpression.ConvertDDVF(_text, DateRuleObjects.minDate, ddo.dateFmt);
}
else
{
_4 = AyDateStrictExpression.ConvertDDVF(_text, DateRuleObjects.minDate, "yyyy-MM-dd");
}
}
}
else
{
_4 = AyDateStrictExpression.ConvertDDVF(null, DateRuleObjects.minDate, null);
}
bool ret = true;
foreach (var subtime in _4)
{
if (subtime.IsNotNull() && item < subtime.Value)
{
ret = false;
break;
}
}
return ret;
}
else
{
//单控制
DateTime MinDateCopy = AyDateStrictExpression.Convert(DateRuleObjects.minDate);
if (item < MinDateCopy)
{
returnResult = false;
}
}
}
if (!DateRuleObjects.maxDate.IsNullAndTrimAndEmpty())
{
//是否含有#F{ }
if (DateRuleObjects.maxDate.IndexOf(@"#F{") == 0)
{
List<DateTime?> _4 = null;
if (DateRuleObjects.maxDate.IndexOf("ay") > -1) //使用了绑定
{
if (MaxDateReferToElement.IsNotNull())
{
string _text = MaxDateReferToElement.Text;
string _dateRule = MaxDateReferToElement.DateRule;
var ddo = AyJsonUtility.DecodeObject2<AyDateRuleJsonToObjects>(_dateRule);
if (ddo.IsNotNull())
{
_4 = AyDateStrictExpression.ConvertDDVF(_text, DateRuleObjects.maxDate, ddo.dateFmt);
}
else
{
_4 = AyDateStrictExpression.ConvertDDVF(_text, DateRuleObjects.maxDate, "yyyy-MM-dd");
}
}
}
else
{
_4 = AyDateStrictExpression.ConvertDDVF(null, DateRuleObjects.maxDate, null);
}
bool ret = true;
foreach (var subtime in _4)
{
if (subtime.IsNotNull() && item > subtime.Value)
{
ret = false;
break;
}
}
return ret;
}
else
{
//单控制
DateTime MaxDateCopy = AyDateStrictExpression.Convert(DateRuleObjects.maxDate);
if (item > MaxDateCopy)
{
returnResult = false;
}
}
}
if (DateRuleObjects.disabledDays.IsNotNull() && DateRuleObjects.disabledDays.Count > 0)
{
var _1 = item.DayOfWeek.GetHashCode();
foreach (var disabledDay in DateRuleObjects.disabledDays)
{
if (_1 == disabledDay)
{
returnResult = false;
break;
}
}
}
if (DateRuleObjects.disabledDates.IsNotNull() && DateRuleObjects.disabledDates.Count > 0)
{
if (DisabledDatesStrings == null)
DisabledDatesStrings = new List<string>();
else
DisabledDatesStrings.Clear();
foreach (var disabledDate in DateRuleObjects.disabledDates)
{
var _ti = AyCalendarService.hasTeShu(disabledDate);
string _2 = disabledDate;
if (_ti)
{
_2 = AyDateStrictExpression.ConvertDynamicAyDateExpression(disabledDate);
if (!DisabledDatesStrings.Contains(_2))
{
DisabledDatesStrings.Add(_2);
}
}
else
{
if (!DisabledDatesStrings.Contains(disabledDate))
{
DisabledDatesStrings.Add(disabledDate);
}
}
//正则处理
if (_2.IndexOf(":") < 0)
{
bool d = Regex.IsMatch(item.ToString("yyyy-MM-dd"), _2);
if (d)
{
returnResult = false;
}
}
else
{
bool d = Regex.IsMatch(item.ToString("yyyy-MM-dd HH:mm:ss"), _2);
if (d)
{
returnResult = false;
}
}
if (DateRuleObjects.opposite)
{
returnResult = !returnResult;
}
}
}
else
{
DisabledDatesStrings = null;
}
}
return returnResult;
}
19
View Source File : pb_VersionInfo.cs
License : MIT License
Project Creator : azsumas
License : MIT License
Project Creator : azsumas
public override int GetHashCode()
{
int hash = 13;
unchecked
{
if(valid)
{
hash = (hash * 7) + major.GetHashCode();
hash = (hash * 7) + minor.GetHashCode();
hash = (hash * 7) + patch.GetHashCode();
hash = (hash * 7) + build.GetHashCode();
hash = (hash * 7) + type.GetHashCode();
}
else
{
return text.GetHashCode();
}
}
return hash;
}
19
View Source File : System_EnumWrap.cs
License : MIT License
Project Creator : bjfumac
License : MIT License
Project Creator : bjfumac
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int GetHashCode(IntPtr L)
{
try
{
ToLua.CheckArgsCount(L, 1);
System.Enum obj = (System.Enum)ToLua.CheckObject<System.Enum>(L, 1);
int o = obj.GetHashCode();
LuaDLL.lua_pushinteger(L, o);
return 1;
}
catch (Exception e)
{
return LuaDLL.toluaL_exception(L, e);
}
}
19
View Source File : NetworkMessageProto.cs
License : GNU Affero General Public License v3.0
Project Creator : blockbasenetwork
License : GNU Affero General Public License v3.0
Project Creator : blockbasenetwork
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (NetworkMessageType != 0) hash ^= NetworkMessageType.GetHashCode();
if (Version != 0) hash ^= Version.GetHashCode();
if (Payload.Length != 0) hash ^= Payload.GetHashCode();
if (PublicKey.Length != 0) hash ^= PublicKey.GetHashCode();
if (EosAccount.Length != 0) hash ^= EosAccount.GetHashCode();
if (Signature.Length != 0) hash ^= Signature.GetHashCode();
if (MessageHash.Length != 0) hash ^= MessageHash.GetHashCode();
if (Destination.Length != 0) hash ^= Destination.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
19
View Source File : KeyCombination.cs
License : BSD 3-Clause "New" or "Revised" License
Project Creator : Bluegrams
License : BSD 3-Clause "New" or "Revised" License
Project Creator : Bluegrams
public override int GetHashCode()
{
return Key.GetHashCode() + Modifiers.GetHashCode();
}
19
View Source File : Struct.cs
License : MIT License
Project Creator : bluexo
License : MIT License
Project Creator : bluexo
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (kindCase_ == KindOneofCase.NullValue) hash ^= NullValue.GetHashCode();
if (kindCase_ == KindOneofCase.NumberValue) hash ^= NumberValue.GetHashCode();
if (kindCase_ == KindOneofCase.StringValue) hash ^= StringValue.GetHashCode();
if (kindCase_ == KindOneofCase.BoolValue) hash ^= BoolValue.GetHashCode();
if (kindCase_ == KindOneofCase.StructValue) hash ^= StructValue.GetHashCode();
if (kindCase_ == KindOneofCase.ListValue) hash ^= ListValue.GetHashCode();
hash ^= (int) kindCase_;
return hash;
}
19
View Source File : Common.g.cs
License : Apache License 2.0
Project Creator : census-instrumentation
License : Apache License 2.0
Project Creator : census-instrumentation
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (Language != 0) hash ^= Language.GetHashCode();
if (ExporterVersion.Length != 0) hash ^= ExporterVersion.GetHashCode();
if (CoreLibraryVersion.Length != 0) hash ^= CoreLibraryVersion.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
19
View Source File : DtlsSrtpServer.cs
License : MIT License
Project Creator : chatop2020
License : MIT License
Project Creator : chatop2020
public override void NotifyAlertRaised(byte alertLevel, byte alertDescription, string message, Exception cause)
{
string description = null;
if (message != null)
{
description += message;
}
if (cause != null)
{
description += cause;
}
string alertMsg = $"{AlertLevel.GetText(alertLevel)}, {AlertDescription.GetText(alertDescription)}";
alertMsg += (!string.IsNullOrEmpty(description)) ? $", {description}." : ".";
if (alertDescription == AlertTypesEnum.close_notify.GetHashCode())
{
logger.LogDebug($"DTLS server raised close notify: {alertMsg}");
}
else
{
logger.LogWarning($"DTLS server raised unexpected alert: {alertMsg}");
}
}
19
View Source File : STUNUri.cs
License : MIT License
Project Creator : chatop2020
License : MIT License
Project Creator : chatop2020
public override int GetHashCode()
{
return Scheme.GetHashCode()
+ Transport.GetHashCode()
+ ((Host != null) ? Host.GetHashCode() : 0)
+ Port
+ ((ExplicitPort) ? 1 : 0);
}
19
View Source File : NumberData.cs
License : GNU General Public License v3.0
Project Creator : CheezLang
License : GNU General Public License v3.0
Project Creator : CheezLang
public override int GetHashCode()
{
var hashCode = 1753786285;
hashCode = hashCode * -1521134295 + Type.GetHashCode();
hashCode = hashCode * -1521134295 + EqualityComparer<BigInteger>.Default.GetHashCode(IntValue);
hashCode = hashCode * -1521134295 + DoubleValue.GetHashCode();
return hashCode;
}
19
View Source File : AdjacencyRule.cs
License : MIT License
Project Creator : Chris3606
License : MIT License
Project Creator : Chris3606
public override int GetHashCode() => Type.GetHashCode();
19
View Source File : EnumTestSqlServer1.cs
License : MIT License
Project Creator : christiandelbianco
License : MIT License
Project Creator : christiandelbianco
private static void ModifyTableContent()
{
CheckValues.Add(ChangeType.Insert.ToString(), new Tuple<EnumTestSqlServerModel1, EnumTestSqlServerModel1>(new EnumTestSqlServerModel1 { Tipo = TypeEnum1.Figlio, Name = "Christian", Surname = "Del Bianco" }, new EnumTestSqlServerModel1()));
CheckValues.Add(ChangeType.Update.ToString(), new Tuple<EnumTestSqlServerModel1, EnumTestSqlServerModel1>(new EnumTestSqlServerModel1 { Tipo = TypeEnum1.Genitore, Name = "Velia", Surname = "Del Bianco" }, new EnumTestSqlServerModel1()));
CheckValues.Add(ChangeType.Delete.ToString(), new Tuple<EnumTestSqlServerModel1, EnumTestSqlServerModel1>(new EnumTestSqlServerModel1 { Tipo = TypeEnum1.Genitore, Name = "Velia", Surname = "Del Bianco" }, new EnumTestSqlServerModel1()));
using (var sqlConnection = new SqlConnection(ConnectionStringForTestUser))
{
sqlConnection.Open();
using (var sqlCommand = sqlConnection.CreateCommand())
{
sqlCommand.CommandText = $"INSERT INTO [{TableName}] ([Tipo], [Name], [Surname]) VALUES ({CheckValues[ChangeType.Insert.ToString()].Item1.Tipo.GetHashCode()}, N'{CheckValues[ChangeType.Insert.ToString()].Item1.Name}', N'{CheckValues[ChangeType.Insert.ToString()].Item1.Surname}')";
sqlCommand.ExecuteNonQuery();
}
using (var sqlCommand = sqlConnection.CreateCommand())
{
sqlCommand.CommandText = $"UPDATE [{TableName}] SET [Name] = N'{CheckValues[ChangeType.Update.ToString()].Item1.Name}', [Tipo] = {CheckValues[ChangeType.Update.ToString()].Item1.Tipo.GetHashCode()}";
sqlCommand.ExecuteNonQuery();
}
using (var sqlCommand = sqlConnection.CreateCommand())
{
sqlCommand.CommandText = $"DELETE FROM [{TableName}]";
sqlCommand.ExecuteNonQuery();
}
}
}
19
View Source File : EnumTestSqlServer2.cs
License : MIT License
Project Creator : christiandelbianco
License : MIT License
Project Creator : christiandelbianco
private static void ModifyTableContent()
{
CheckValues.Add(ChangeType.Insert.ToString(), new Tuple<EnumTestSqlServerModel2, EnumTestSqlServerModel2>(new EnumTestSqlServerModel2 { TesterName = TesterName.DonalDuck, TestType = TestType.IntegrationTest, TestStatus = TestStatus.Fail, ErrorMessage = "Random error" }, new EnumTestSqlServerModel2()));
CheckValues.Add(ChangeType.Update.ToString(), new Tuple<EnumTestSqlServerModel2, EnumTestSqlServerModel2>(new EnumTestSqlServerModel2 { TesterName = TesterName.MickeyMouse, TestType = TestType.UnitTest, TestStatus = TestStatus.Preplaced, ErrorMessage = null }, new EnumTestSqlServerModel2()));
CheckValues.Add(ChangeType.Delete.ToString(), new Tuple<EnumTestSqlServerModel2, EnumTestSqlServerModel2>(new EnumTestSqlServerModel2 { TesterName = TesterName.MickeyMouse, TestType = TestType.UnitTest, TestStatus = TestStatus.Preplaced, ErrorMessage = null }, new EnumTestSqlServerModel2()));
using (var sqlConnection = new SqlConnection(ConnectionStringForTestUser))
{
sqlConnection.Open();
using (var sqlCommand = sqlConnection.CreateCommand())
{
sqlCommand.CommandText = $"INSERT INTO [{TableName}] ([TesterName], [TestType], [ErrorMessage]) VALUES (N'{CheckValues[ChangeType.Insert.ToString()].Item1.TesterName}', {CheckValues[ChangeType.Insert.ToString()].Item1.TestType.GetHashCode()}, N'{CheckValues[ChangeType.Insert.ToString()].Item1.ErrorMessage}')";
sqlCommand.ExecuteNonQuery();
}
using (var sqlCommand = sqlConnection.CreateCommand())
{
sqlCommand.CommandText = $"UPDATE [{TableName}] SET [ErrorMessage] = null, [TesterName] = N'{CheckValues[ChangeType.Update.ToString()].Item1.TesterName}', [TestType] = {CheckValues[ChangeType.Update.ToString()].Item1.TestType.GetHashCode()}";
sqlCommand.ExecuteNonQuery();
}
using (var sqlCommand = sqlConnection.CreateCommand())
{
sqlCommand.CommandText = $"DELETE FROM [{TableName}]";
sqlCommand.ExecuteNonQuery();
}
}
}
19
View Source File : Issue53Test.cs
License : MIT License
Project Creator : christiandelbianco
License : MIT License
Project Creator : christiandelbianco
private static void ModifyTableContent2()
{
_checkValues2.Add(ChangeType.Insert.ToString(), new Tuple<Issue53Model2, Issue53Model2>(new Issue53Model2 { Id = 9, Gender = SexEnum.Female }, new Issue53Model2()));
_checkValues2.Add(ChangeType.Update.ToString(), new Tuple<Issue53Model2, Issue53Model2>(new Issue53Model2 { Id = 4, Gender = SexEnum.Male }, new Issue53Model2()));
_checkValues2.Add(ChangeType.Delete.ToString(), new Tuple<Issue53Model2, Issue53Model2>(new Issue53Model2 { Id = 4, Gender = SexEnum.Male }, new Issue53Model2()));
ModifyTableContent(
TableName2,
_checkValues2[ChangeType.Insert.ToString()].Item1.Id,
_checkValues2[ChangeType.Insert.ToString()].Item1.Gender.GetHashCode(),
_checkValues2[ChangeType.Update.ToString()].Item1.Id,
_checkValues2[ChangeType.Update.ToString()].Item1.Gender.GetHashCode());
}
19
View Source File : Issue53Test.cs
License : MIT License
Project Creator : christiandelbianco
License : MIT License
Project Creator : christiandelbianco
private static void ModifyTableContent4()
{
_checkValues4.Add(ChangeType.Insert.ToString(), new Tuple<Issue53Model4, Issue53Model4>(new Issue53Model4 { Id = 57, Gender = SexEnum.Female }, new Issue53Model4()));
_checkValues4.Add(ChangeType.Update.ToString(), new Tuple<Issue53Model4, Issue53Model4>(new Issue53Model4 { Id = 4, Gender = SexEnum.Male }, new Issue53Model4()));
_checkValues4.Add(ChangeType.Delete.ToString(), new Tuple<Issue53Model4, Issue53Model4>(new Issue53Model4 { Id = 4, Gender = SexEnum.Male }, new Issue53Model4()));
ModifyTableContent(
TableName4,
_checkValues4[ChangeType.Insert.ToString()].Item1.Id,
_checkValues4[ChangeType.Insert.ToString()].Item1.Gender.GetHashCode(),
_checkValues4[ChangeType.Update.ToString()].Item1.Id,
_checkValues4[ChangeType.Update.ToString()].Item1.Gender.GetHashCode());
}
19
View Source File : NavMap.cs
License : Apache License 2.0
Project Creator : codaris
License : Apache License 2.0
Project Creator : codaris
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (Content != 0) hash ^= Content.GetHashCode();
if (Depth != 0) hash ^= Depth.GetHashCode();
if (ColorRgba != 0) hash ^= ColorRgba.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
19
View Source File : ResponseStatus.cs
License : Apache License 2.0
Project Creator : codaris
License : Apache License 2.0
Project Creator : codaris
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (Code != 0) hash ^= Code.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
19
View Source File : Alexa.cs
License : Apache License 2.0
Project Creator : codaris
License : Apache License 2.0
Project Creator : codaris
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (status_ != null) hash ^= Status.GetHashCode();
if (AuthState != 0) hash ^= AuthState.GetHashCode();
if (Extra.Length != 0) hash ^= Extra.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
19
View Source File : Alexa.cs
License : Apache License 2.0
Project Creator : codaris
License : Apache License 2.0
Project Creator : codaris
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (AuthState != 0) hash ^= AuthState.GetHashCode();
if (Extra.Length != 0) hash ^= Extra.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
19
View Source File : Behavior.cs
License : Apache License 2.0
Project Creator : codaris
License : Apache License 2.0
Project Creator : codaris
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (Priority != 0) hash ^= Priority.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
See More Examples