Esempio n. 1
0
 public TableCombineOperation(
     TomlTable target, TomlTable source, CommentsOp commentsOp)
 {
     this.target     = target.CheckNotNull(nameof(target));
     this.source     = source.CheckNotNull(nameof(source));
     this.commentsOp = commentsOp.CheckNotNull(nameof(commentsOp));
 }
Esempio n. 2
0
 static OverwriteTableOperationBuilder()
 {
     IncludeAllCommentsAndReplace = i => i.SourceComments;
     IncludeAllCommentsAndAppend  = i => i.TargetComments.Union(i.SourceComments);
     IncludeNewComments           = i => i.TargetComments.Count() <= 0 ? i.SourceComments : i.TargetComments;
     ExcludeComments = i => i.TargetComments;
 }
Esempio n. 3
0
 public OverwriteSourceOnlyRowsOperation(TomlTable target, TomlTable source, CommentsOp commentsOp)
     : base(target, source, commentsOp)
 {
 }
Esempio n. 4
0
 IRowSelector ICommentOperationOrRowSelector.IncludingComments(CommentsOp combiner)
 {
     this.commentsOp = combiner.CheckNotNull(nameof(combiner));
     return(this);
 }