예제 #1
0
 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);
 }
예제 #2
0
 private static string MergeDescription([NotNull] IMetaInfoLine t, [NotNull] IMetaInfoLine q)
 => MergeDescription(t.Description, q.Description);
예제 #3
0
 private static bool IsDescriptionEqual([NotNull] IMetaInfoLine t, [NotNull] IMetaInfoLine q)
 => string.Equals(q.Description.Trim(), t.Description.Trim(), StringComparison.InvariantCultureIgnoreCase);