Exemplo n.º 1
0
        public override int GetHashCode()
        {
            var hash = 1;

            if (Seconds != 0L)
            {
                hash ^= Seconds.GetHashCode();
            }
            if (Nanos != 0)
            {
                hash ^= Nanos.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Year != 0)
            {
                hash ^= Year.GetHashCode();
            }
            if (Month != 0)
            {
                hash ^= Month.GetHashCode();
            }
            if (Day != 0)
            {
                hash ^= Day.GetHashCode();
            }
            if (Hours != 0)
            {
                hash ^= Hours.GetHashCode();
            }
            if (Minutes != 0)
            {
                hash ^= Minutes.GetHashCode();
            }
            if (Seconds != 0)
            {
                hash ^= Seconds.GetHashCode();
            }
            if (Nanos != 0)
            {
                hash ^= Nanos.GetHashCode();
            }
            if (timeOffsetCase_ == TimeOffsetOneofCase.UtcOffset)
            {
                hash ^= UtcOffset.GetHashCode();
            }
            if (timeOffsetCase_ == TimeOffsetOneofCase.TimeZone)
            {
                hash ^= TimeZone.GetHashCode();
            }
            hash ^= (int)timeOffsetCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Seconds != 0L)
            {
                hash ^= Seconds.GetHashCode();
            }
            if (Nanos != 0)
            {
                hash ^= Nanos.GetHashCode();
            }
            if (Millis != 0L)
            {
                hash ^= Millis.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }