I have a code that copies 30 strings to a clipboard at a time from a data source that gets updated randomly; some times over a hundred new strings in under a second and some times there are no updates for a few minutes. I want to send all the strings over sockets to a database. What would be the most efficient approach to sending the strings over sockets with out sending duplicates?
Share
An easy but yet efficient way would be to check for and remove duplicates using LINQ right before you send your strings to the DB:
This way you eliminate all duplicate strings from
original.