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)); }
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; }
public OverwriteSourceOnlyRowsOperation(TomlTable target, TomlTable source, CommentsOp commentsOp) : base(target, source, commentsOp) { }
IRowSelector ICommentOperationOrRowSelector.IncludingComments(CommentsOp combiner) { this.commentsOp = combiner.CheckNotNull(nameof(combiner)); return(this); }