I have two lists.
Ex:
List<string> expected = new List<string>();
expected.Add( "a" );
expected.Add( "b" );
expected.Add( "c" );
actual = new List<string>();
actual.Add( "c" );
actual.Add( "a" );
actual.Add( "b" );
actual.Add( "e" );
actual.Add( "d" );
I have to compare both lists(regardless order).i have to remove extra values what are in the
second list.if second list contain all values of first list then i have to return true.
Can you please give any ideas.
How about something like this: I’m not clear on your statement “i have to remove extra values what are in the second list” but i think I’m understanding that you just want the union of both lists. Am I right?