ConditionalRecordAttribute Class |
Allow to declaratively set what records must be included or excluded while reading.
Inheritance Hierarchy
Namespace:
FileHelpers
Assembly:
FileHelpers (in FileHelpers.dll) Version: 3.2.6
Syntaxpublic sealed class ConditionalRecordAttribute : Attribute
Public NotInheritable Class ConditionalRecordAttribute
Inherits Attribute
The ConditionalRecordAttribute type exposes the following members.
Constructors
Properties
| Name | Description |
---|
 | Condition | The condition used to include or exclude each record |
 | ConditionSelector | The selector (match string) for the condition. |
Top
Remarks
Examples
[DelimitedRecord(",")]
[ConditionalRecord(RecordCondition.ExcludeIfBegins, "//")]
public class ConditionalType1
{
// Using Regular Expressions example
[DelimitedRecord(",")]
[ConditionalRecord(RecordCondition.IncludeIfMatchRegex, ".*abc??")]
public class ConditionalType3
{
See Also