public override int GetHashCode()
        {
            var hashCode = 486394590;

            hashCode = hashCode * -1521134295 + BuyerID.GetHashCode();
            hashCode = hashCode * -1521134295 + CreditRating.GetHashCode();
            return(hashCode);
        }
예제 #2
0
파일: Vendor.cs 프로젝트: johaDev/CodegenCS
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = 17;
         hash = hash * 23 + (AccountNumber == null ? 0 : AccountNumber.GetHashCode());
         hash = hash * 23 + (ActiveFlag == default(bool) ? 0 : ActiveFlag.GetHashCode());
         hash = hash * 23 + (BusinessEntityId == default(int) ? 0 : BusinessEntityId.GetHashCode());
         hash = hash * 23 + (CreditRating == default(byte) ? 0 : CreditRating.GetHashCode());
         hash = hash * 23 + (ModifiedDate == default(DateTime) ? 0 : ModifiedDate.GetHashCode());
         hash = hash * 23 + (Name == null ? 0 : Name.GetHashCode());
         hash = hash * 23 + (PreferredVendorStatus == default(bool) ? 0 : PreferredVendorStatus.GetHashCode());
         hash = hash * 23 + (PurchasingWebServiceUrl == null ? 0 : PurchasingWebServiceUrl.GetHashCode());
         return(hash);
     }
 }