Setting Minimum And Maximum Lengths
Creating well-formed EDI documents can mean the difference in an EDI file being accepted or rejected by EDI receivers. EDIDocument helps to make sure that you create well-formed EDI documents.
It is always good to keep the value in an elements between its minimum and maximum allowable lengths. EDIDocument will do this for you.
To enable this create a DataElement object using the DataElement(string elementValue, int min, int max) constructor.