I have a String (String1) with text "HELLO".
Now I want to check if String2 has ANY letter of String1.
If yes, I want to remove that letter in String2. How can I do that?
Try using Linq; to check if any characters of the
firstString are in the
bool result = firstString.Intersect(secondString).Any();
firstString characters from the
string result = string.Concat(secondString.Except(firstString));