private static bool IsConflicted([NotNull] IMetaInfoLine line, [NotNull] IMetaInfoLine target) { if (line.Id != target.Id) { return(false); } if (line.Description == target.Description) { return(false); } Console.WriteLine( $"WARNING: Existing {line.Id} with different description! Overwriting {line.Description} with {target.Description}..."); return(true); }
private static string MergeDescription([NotNull] IMetaInfoLine t, [NotNull] IMetaInfoLine q) => MergeDescription(t.Description, q.Description);
private static bool IsDescriptionEqual([NotNull] IMetaInfoLine t, [NotNull] IMetaInfoLine q) => string.Equals(q.Description.Trim(), t.Description.Trim(), StringComparison.InvariantCultureIgnoreCase);