Link to home
Start Free TrialLog in
Avatar of Soluga
Soluga

asked on

Remove item from generic list

Hi

I am trying to remove an item from a generic list, I have been using the code below but it does not remove the item.

 _oM04_UserManager = New M04_UserManager
                Dim oM04_UserList As List(Of M04_User)
                oM04_UserList = _oM04_UserManager.GetAllUsersForAllCompanies(_userId)
                oM04_UserList.RemoveAll(Function(p As M04_User) p.UserID = "5833aeb8-13e7-44e5-b60d-600395f5cdab")

Would be grateful for any advice

Thanks
ASKER CERTIFIED SOLUTION
Avatar of AndyAinscow
AndyAinscow
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Soluga
Soluga

ASKER

Doh!

Thanks