Do more with
string string1 = "1,2,3,4,5,6";
string string2 = "4,5,6";
string string3 = string1.Replace(string2, string.Empty);
public static string ReturnDiff(string firstString, string scndString)
{
StringBuilder newStb = new StringBuilder();
if (firstString != null && scndString != null)
{
for(int i=0;i<firstString.Length;i++)
{
if (!scndString.Contains(firstString[i]))
newStb.Append(firstString[i]);
}
}
return newStb.ToString();
}
Premium Content
You need an Expert Office subscription to comment.Start Free Trial