I would like some feedback on the code below. And how would I Implement pattern match on find users in role so that exact match not required?      // MembershipProvider.FindUsersByName       public override MembershipUserCollection FindUsersByName(string usernameToMatch, int pageIndex, int pageSize, out int totalRecords){    MembershipUserCollection users = new MembershipUserCollection();    try    {        Profile.MembershipMapper memberMapper = new MembershipMapper();        List<Profile.Membership> recs = (List<Profile.Membership>)memberMapper.GetMembershipsByUsername(_memberUtil.GetApplicationId(), usernameToMatch, pageIndex, pageSize, out totalRecords);        foreach (Profile.Membership rec in recs)        {            users.Add(GetUserFromModel(rec, usernameToMatch));        }    }    catch (Exception ex)    {        Exception e = CheckEventLog(ex, FindUsersByName);        throw e;    }    return users;}
Implement pattern match on FindUsersByName
c#