Please help to implement the following two generic list of strings comparison:
: Two lists: cs1 and cs2 (List<string>)
: Method must compare both cs1 and cs2 as follows:
If a string is in cs1 but not in cs2 then add string to Added list.
If a string is in not in cs1 but it is in cs2 then add string to Deleted list.
If a string is in both cs1 and cs2 then ignore it.
: Two lists: Added and Deleted as List<string>
The answer could be written as a method in C# or VB.NET. Input list sizes can vary from 3 to 280 items.
e.g. cs1: abc, def, fgh
cs2: abc, xyz
Added: def, fgh.