Interface ICommentOperationOrRowSelector
Builder interface to select how comments should be handled or what rows should get processed by the combine operation.
Inherited Members
Namespace: Nett
Assembly: Nett.dll
Syntax
public interface ICommentOperationOrRowSelector : IRowSelector
Methods
| Improve this Doc View SourceExcludingComments()
Keep comments from the target table and do not copy comments from the source table to the resulting table.
Declaration
IRowSelector ExcludingComments()
Returns
Type | Description |
---|---|
IRowSelector | A builder object that allows to select the rows to process. |
IncludingAllComments(Boolean)
Replace or append comments in the target table with comments from the source table for rows that are processed.
Declaration
IRowSelector IncludingAllComments(bool append = false)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | append | If true appends comments instead of replacing the target table comments. |
Returns
Type | Description |
---|---|
IRowSelector | A builder object that allows to select the rows to process. |
IncludingComments(Func<InputComments, IEnumerable<TomlComment>>)
Specify custom func to control how comments should be processed.
Declaration
IRowSelector IncludingComments(Func<InputComments, IEnumerable<TomlComment>> combiner)
Parameters
Type | Name | Description |
---|---|---|
System.Func<InputComments, System.Collections.Generic.IEnumerable<TomlComment>> | combiner | A func to control how comments should be handled. |
Returns
Type | Description |
---|---|
IRowSelector | A builder object that allows to select the rows to process. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | If combiner is null. |
IncludingNewComments()
Copies comments from the source table if the target table row does not have any comments yet.
Declaration
IRowSelector IncludingNewComments()
Returns
Type | Description |
---|---|
IRowSelector | A builder object that allows to select the rows to process. |