Here’s another one for you. This segment of code gets the list of all responses to be sent and sends them.
public void TransmitResponse(ArrayList responses,
foreach (DataResponse response in responses)
NetworkResponse networkResponse = response.GetNetwork();
GC.Collect(); // clean up temporary objects
1) What’s wrong with this code?
III) What should you do instead?