Пример #1
0
        public override int GetHashCode()
        {
            unchecked
            {
                const int hashBase   = (int)2166136261;
                const int multiplier = 16777619;

                int hash = hashBase;
                hash = (hash * multiplier) ^ Uln.GetHashCode();
                hash = (hash * multiplier) ^ (FamilyName is null ? 0 : FamilyName.GetHashCode());
                return(hash);
            }
        }
Пример #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Ukprn.GetHashCode();
         hashCode = (hashCode * 397) ^ Uln.GetHashCode();
         hashCode = (hashCode * 397) ^ (FundingLineType != null ? StringComparer.OrdinalIgnoreCase.GetHashCode(FundingLineType) : 0);
         hashCode = (hashCode * 397) ^ ContractType;
         hashCode = (hashCode * 397) ^ DeliveryPeriod;
         hashCode = (hashCode * 397) ^ TransactionType;
         hashCode = (hashCode * 397) ^ Amount.GetHashCode();
         return(hashCode);
     }
 }
        public override int GetHashCode()
        {
            unchecked
            {
                const int hashBase   = (int)2166136261;
                const int multiplier = 16777619;

                int hash = hashBase;
                hash = (hash * multiplier) ^ Uln.GetHashCode();
                hash = (hash * multiplier) ^ StandardCode.GetHashCode();
                hash = (hash * multiplier) ^ (StandardReference is null ? 0 : StandardReference.GetHashCode());
                hash = (hash * multiplier) ^ (FamilyName is null ? 0 : FamilyName.GetHashCode());
                hash = (hash * multiplier) ^ (CertificateReference is null ? 0 : CertificateReference.GetHashCode());

                return(hash);
            }
        }