예제 #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (SubjectId.Length != 0)
            {
                hash ^= SubjectId.GetHashCode();
            }
            if (Username.Length != 0)
            {
                hash ^= Username.GetHashCode();
            }
            if (Message.Length != 0)
            {
                hash ^= Message.GetHashCode();
            }
            if (created_ != null)
            {
                hash ^= Created.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
예제 #2
0
 public override int GetHashCode()
 {
     return(Tenant.GetHashCode() ^
            SubjectId.GetHashCode() ^
            ActionId.GetHashCode() ^
            (ObjectId ?? string.Empty).GetHashCode() ^
            Reaction.GetHashCode());
 }
예제 #3
0
        public override int GetHashCode()
        {
            var code = ClientId.GetHashCode() ^
                       CreationTime.GetHashCode() ^
                       Data.GetHashCode() ^
                       Expiration.GetHashCode() ^
                       Key.GetHashCode() ^
                       SubjectId.GetHashCode() ^
                       Type.GetHashCode();

            return(code);
        }
        private int GenerateHashCode()
        {
            unchecked
            {
                int hash = 17;

                hash = hash * 92821 + SubjectId.GetHashCode( );

                hash = hash * 92821 + PermissionId.GetHashCode( );

                return(hash);
            }
        }
예제 #5
0
        public override int GetHashCode()
        {
            int hashCode = 552405456;

            hashCode = hashCode * -1521134295 + Id.GetHashCode();
            hashCode = hashCode * -1521134295 + StudentId.GetHashCode();
            hashCode = hashCode * -1521134295 + SubjectId.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Result);

            hashCode = hashCode * -1521134295 + WorkTypeId.GetHashCode();
            hashCode = hashCode * -1521134295 + SessionSheduleId.GetHashCode();
            return(hashCode);
        }
예제 #6
0
                public override int GetHashCode()
                {
                    int hash = 1;

                    if (SubjectId.Length != 0)
                    {
                        hash ^= SubjectId.GetHashCode();
                    }
                    hash ^= votes_.GetHashCode();
                    if (_unknownFields != null)
                    {
                        hash ^= _unknownFields.GetHashCode();
                    }
                    return(hash);
                }
예제 #7
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (SubjectId.Length != 0)
            {
                hash ^= SubjectId.GetHashCode();
            }
            if (OptionName.Length != 0)
            {
                hash ^= OptionName.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
예제 #8
0
 public override int GetHashCode()
 {
     return(SubjectId.GetHashCode());
 }