A
Andrew Robinson
I have two List<t>. I need to search ListA to see if it contains ListB
So:
ListA { 1, 2, 3, 4, 5, 6, 7, 8, 9 }
Searching ListA with { 4, 5, 6 } would return true and an index of 3.
Searching ListA with { 4, 6, 5 } would return false and or an index of -1.
Hope my pseudo coding is clear?
Is there any easy way of doing this with generic lists? I am looking at
lists of strings for now.
Thanks,
So:
ListA { 1, 2, 3, 4, 5, 6, 7, 8, 9 }
Searching ListA with { 4, 5, 6 } would return true and an index of 3.
Searching ListA with { 4, 6, 5 } would return false and or an index of -1.
Hope my pseudo coding is clear?
Is there any easy way of doing this with generic lists? I am looking at
lists of strings for now.
Thanks,