Пример #1
0
                public override int GetHashCode()
                {
                    int hash = 1;

                    if (NotificationId.Length != 0)
                    {
                        hash ^= NotificationId.GetHashCode();
                    }
                    if (TitleKey.Length != 0)
                    {
                        hash ^= TitleKey.GetHashCode();
                    }
                    if (Category.Length != 0)
                    {
                        hash ^= Category.GetHashCode();
                    }
                    if (CreateTimestampMs != 0L)
                    {
                        hash ^= CreateTimestampMs.GetHashCode();
                    }
                    hash ^= variables_.GetHashCode();
                    hash ^= labels_.GetHashCode();
                    if (ExpireTimeMs != 0L)
                    {
                        hash ^= ExpireTimeMs.GetHashCode();
                    }
                    if (_unknownFields != null)
                    {
                        hash ^= _unknownFields.GetHashCode();
                    }
                    return(hash);
                }
Пример #2
0
                        public override int GetHashCode()
                        {
                            int hash = 1;

                            if (NotificationId.Length != 0)
                            {
                                hash ^= NotificationId.GetHashCode();
                            }
                            if (TitleKey.Length != 0)
                            {
                                hash ^= TitleKey.GetHashCode();
                            }
                            if (Category.Length != 0)
                            {
                                hash ^= Category.GetHashCode();
                            }
                            if (CreateTimestampMs != 0L)
                            {
                                hash ^= CreateTimestampMs.GetHashCode();
                            }
                            hash ^= variables_.GetHashCode();
                            hash ^= labels_.GetHashCode();
                            return(hash);
                        }