示例#1
0
        /// <summary>
        /// Hash code for the transaction for equality checks
        /// </summary>
        public override int GetHashCode()
        {
            // Get the hash code for the Date field if it is not null.
            int hashFITID = FITID == Convert.ToInt64(null) ? 0 : FITID.GetHashCode();

            // Calculate the hash code for the transaction.
            return(hashFITID);
        }
示例#2
0
        /// <summary>
        /// Hash code for the transaction for equality checks
        /// </summary>
        public override int GetHashCode()
        {
            // Get the hash code for the Date field if it is not null.
            int hashEffectiveDate = EffectiveDate == null ? 0 : EffectiveDate.GetHashCode();

            // Get the hash code for the FITID field.
            int hashFITID = FITID.GetHashCode();

            // Calculate the hash code for the transaction.
            return(hashEffectiveDate ^ hashFITID);
        }