So here's my problem:
I have a static list of objects that stores all the files being uploaded.
private static List<Upload> vidUploadList = new List<Upload>();
To maintain the list, any uploads that have failed should be removed from the list. My question is: if a user changes the list, the index of items in the list will change. Is it possible for another user to be half way through a list using a loop command and have the list change? If say, the item [3] in the list was being used and then the object before was removed (changing the position to [2]) would the code still run?
Is it possible to lock the list when any user comes to use it and then release the lock straight after, ensuring that only one session at a time is accessing the list? I have heard that the monitor class may help me here.