Click or drag to resize

ConditionalRecordAttribute Class

Allow to declaratively set what records must be included or excluded while reading.
Inheritance Hierarchy
SystemObject
  SystemAttribute
    FileHelpersConditionalRecordAttribute

Namespace:  FileHelpers
Assembly:  FileHelpers (in FileHelpers.dll) Version: 3.2.6
Syntax
public sealed class ConditionalRecordAttribute : Attribute

The ConditionalRecordAttribute type exposes the following members.

Constructors
  NameDescription
Public methodConditionalRecordAttribute
Allow to declaratively show what records must be included or excluded
Top
Properties
  NameDescription
Public propertyCondition
The condition used to include or exclude each record
Public propertyConditionSelector
The selector (match string) for the condition.
Top
Remarks
See the Complete attributes list for more information and examples of each one.
Examples
[DelimitedRecord(",")] [ConditionalRecord(RecordCondition.ExcludeIfBegins, "//")] public class ConditionalType1 { // Using Regular Expressions example [DelimitedRecord(",")] [ConditionalRecord(RecordCondition.IncludeIfMatchRegex, ".*abc??")] public class ConditionalType3 {
See Also