There is a class DB
class DB { private List<string> newList; public string Naimenovanie { get; set; } public string Url { get; set; } } Later I use List<DB> listDB = new List<DB>(); to insert instances of the class DB in the loop.
There is also a separate list. List<string> urls = new List<string>();
How to compare the elements of the listDB.Url and urls and remove from the listDB those url elements which are equal to the url of the urls list
I see it as creating a double loop and comparing elements. I think there is a simple solution through linq .