Skip to content

Compare Method ​

Definition ​

  • Namespace: JASE.Extensions
  • Assembly: JASE.Primitives.dll

List<string> Compare(string source, string compare) ​

csharp
List<string> Compare(string source, string compare)

Performs a word-level comparison between two strings. Splits both strings on spaces, removes duplicates, and returns the set of words that exist in the longer input but not in the shorter input.

Returns ​

List of unique words that differ between the two strings