Exemple #1
0
        protected override int GetHashCodeCore()
        {
            int hashCode = InitialDate.GetHashCode();

            hashCode = (hashCode * 397) ^ EndDate.GetHashCode();

            return(hashCode);
        }
Exemple #2
0
    public override int GetHashCode()
    {
        int hash = 1;

        if (initialDate_ != null)
        {
            hash ^= InitialDate.GetHashCode();
        }
        if (finalDate_ != null)
        {
            hash ^= FinalDate.GetHashCode();
        }
        if (_unknownFields != null)
        {
            hash ^= _unknownFields.GetHashCode();
        }
        return(hash);
    }