Having List<string> paths = new List<string>(); I want to remove item that I’m not sure is there. Should I check if it exists or just run the Remove method straight ahead?
Is if (paths.Exists(stringVar)) needed or considered a good practice before paths.Remove(stringVar)?
Running Remove without Exists would simply return false in case there is no such item in list.
No it doesn’t throw an exception, and there is no need for extra checking . see MSDN: