コード例 #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (CreatedDT.Length != 0)
            {
                hash ^= CreatedDT.GetHashCode();
            }
            if (ModifiedDT.Length != 0)
            {
                hash ^= ModifiedDT.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (LoginName.Length != 0)
            {
                hash ^= LoginName.GetHashCode();
            }
            if (PasswordHash.Length != 0)
            {
                hash ^= PasswordHash.GetHashCode();
            }
            if (AuthenticationToken.Length != 0)
            {
                hash ^= AuthenticationToken.GetHashCode();
            }
            if (IsActive != false)
            {
                hash ^= IsActive.GetHashCode();
            }
            if (IsAdmin != false)
            {
                hash ^= IsAdmin.GetHashCode();
            }
            return(hash);
        }