title: Remove Current Item from List if some criteria matches
body: <p>I am trying to remove my current item in for each loop if some criterai matches but its triggering error after removing and looping again.</p>
  
  <p>My sample code:</p>
  
  <pre><code>        For Each Item As BookingRoom In myBookedRooms
              If Item.RoomInfo.UIN = myRoom.UIN Then
                  myBookedRooms.Remove(Item)
                  Continue For
              End If
          Next
  </code></pre>
  
  <p>*<strong>Note RoomInfo and myRoom are both instances of Room Class</strong>  </p>
  
  <p>I am using <code>myBookedRooms.remove</code> but its trigerring error so what can be the correct way for doing it? ie, remove booked room if the room id matches with selected one</p>