Diff is available as Nuget Package now.
static public List<DiffRes> Diff(List<string> orig, List<string> rev);
static public List<DiffRes> Diff(string orig, string rev);
static public List<GroupedDiffRes> GetGroupedResult(List<DiffRes> diffResList);
static public List<SplitedDiffRes> GetSplitedResult(List<DiffRes> diffResList);
static public List<SplitedDiffRes> GetSplitedResult(List<GroupedDiffRes> rangeList);
DiffRes
DiffType type;
int origIndex;
int revIndex;
GroupedDiffRes
int rangeStart;
int rangeEnd;
DiffType type;
SplitedDiffRes
int origIndex;
int revIndex;
SplitedDiffType type;
DiffType
- Add
- Delete
- None
SplitedDiffType
- Add
- Delete
- None
- Modify