#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 { /// Indicates the length of a FixedLength field. /// See the Complete Attributes List for more clear info and examples of each one. /// Attributes List /// Quick Start Guide /// Examples of Use [AttributeUsage(AttributeTargets.Field)] public sealed class FieldFixedLengthAttribute : FieldAttribute { internal int Length; /// Indicates the length of a FixedLength field. /// The length of the field. public FieldFixedLengthAttribute(int length) { if (length > 0) this.Length = length; else throw new BadUsageException("The length parameter must be > 0"); } } }