private void CreateRecordOptions()
 {
     if (mRecordInfo.IsDelimited)
     {
         mOptions = new DelimitedRecordOptions(mRecordInfo);
     }
     else
     {
         mOptions = new FixedRecordOptions(mRecordInfo);
     }
 }
 private void CreateRecordOptions()
 {
     if (mRecordInfo.IsDelimited)
         Options = new DelimitedRecordOptions(mRecordInfo);
     else
         Options = new FixedRecordOptions(mRecordInfo);
 }
Example #3
0
        internal static RecordOptions CreateRecordOptionsCore(IRecordInfo info)
        {
            RecordOptions options;

            if (info.IsDelimited)
                options = new DelimitedRecordOptions(info);
            else
                options = new FixedRecordOptions(info);

            for (int index = 0; index < options.Fields.Count; index++)
            {
                var field = options.Fields[index];
                field.Parent = options;
                field.ParentIndex = index;
            }

            return options;
        }
Example #4
0
        private void CreateRecordOptions()
        {
            if (RecordInfo.IsDelimited)
                Options = new DelimitedRecordOptions(RecordInfo);
            else
                Options = new FixedRecordOptions(RecordInfo);

            for (int index = 0; index < Options.Fields.Count; index++)
            {
                var field = Options.Fields[index];
                field.Parent = Options;
                field.ParentIndex = index;
            }
        }