#region " © Copyright 2005-07 to Marcos Meli - http://www.marcosmeli.com.ar" // Errors, suggestions, contributions, send a mail to: marcos@filehelpers.com. #endregion using System; namespace FileHelpers { /// Allow to declarative set what records must be included or excluded when reading. /// See the Complete Attributes List for more clear info and examples of each one. /// Attributes List /// Quick Start Guide /// Examples of Use [AttributeUsage(AttributeTargets.Class)] public sealed class ConditionalRecordAttribute : Attribute { internal RecordCondition mCondition; internal string mConditionSelector; /// Allow to declarative show what records must be included or excluded /// The condition used to include or exclude each record /// The selector for the condition. public ConditionalRecordAttribute(RecordCondition condition, string selector) { if (selector == null || selector.Length == 0) throw new BadUsageException("The selector arg for the ConditionalRecordAttribute can't be null or empty."); mCondition = condition; mConditionSelector = selector; } } }