I have two lists like below.
List<string> apple= new List<string>();
apple.Add("a");
apple.Add("b");
List<string> ball= new List<string>();
ball.Add("a,b");
ball.Add("b,c");
ball.Add("c,a");
Now I want to remove elements from the ball list that of which there are substrings of those elements in the apple list. That is if "a" occurs in ball list element, I have to remove those listelements from the ball list.
My expected output of ball list should be (b,c).