private IUser CreateIUserFromMembershipUser(MembershipUser user)
        {
            this.Log(user.UserName, MethodBase.GetCurrentMethod().Name);

            Util.CheckForNull("user", user);
            IUser user2 = new AGSUser();

            user2.SetUsername(user.UserName);
            user2.SetFullname(user.Comment);
            user2.SetEmail(user.Email);
            user2.SetSecretQuestion(user.PasswordQuestion);
            return(user2);
        }
        bool IUserStore.GetAllUsers(string filter, int maxCount, out IUser[] users)
        {
            this.Log("filter" + filter, MethodBase.GetCurrentMethod().Name);

            this.assertInitialized();
            int totalRecords = -1;
            MembershipUserCollection users2 = this._innerMemProvider.FindUsersByName(filter, 0, maxCount, out totalRecords);

            users = new AGSUser[users2.Count];
            int num2 = 0;

            foreach (MembershipUser user in users2)
            {
                users[num2++] = this.CreateIUserFromMembershipUser(user);
            }
            return(totalRecords > users2.Count);
        }