vb.net - Comparing Generic List? -
I am working in vb.net. I have two general lists of a user defined class - lets students of this class call.
I am issuing a call to a database which gives me a dataset that I organize in the generic list of students. Student has properties: first name, last name, phone, address, etc.
Then I issue a foreign web API to arrange the data again in another generic list of students - the same class.
Now I am trying to compare one for one if there is any difference between the difference in the database API call. Do I list the generic list of the class for such other object An easy way to compare? I can not be sure of the sequence of items so that the direct comparison is not possible - but it is a clear way that I am missing other than the search for a match through the generic list and the second generic list.
We call them ... Database List and
APIist
These possibilities are:
- exists
- not present in the API but the database is
- both are present but do not match between
End me with three new lists so that I can take appropriate action. Now the only way I can turn it off is to iterate through lists and this is a bad idea - there should be a better way.
One of the common scenes to compare is that you probably need to sort the archive first and Will need to be implemented.
Comments
Post a Comment