How to acheive this using diffplex c#
CreateWordDiffs(
"The red brown fox jumped over.",
"The brown spotted fox leaped over"
);
Diffplex returns diffresult which is in array ,it need to be string like this output

How to acheive this using diffplex c#
CreateWordDiffs(
"The red brown fox jumped over.",
"The brown spotted fox leaped over"
);
Diffplex returns diffresult which is in array ,it need to be string like this output

Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Uday DodiyaRank #239 · 10.3K reputationPosted Sep 28, 2022, 12:44 AM EDT
string s1 = "The red brown fox jumped over"; string s2 = "The brown spotted fox leaped over"; List diff; IEnumerable set1 = s1.Split(' ').Distinct(); IEnumerable set2 = s2.Split(' ').Distinct(); if (set2.Count() > set1.Count()) { diff = set2.Except(set1).ToList(); } else { diff = set1.Except(set2).ToList(); }