internal ChoCSVRecordFieldConfiguration GetFieldConfiguration(string fn)
        {
            if (!CSVRecordFieldConfigurations.Any(fc => fc.Name == fn))
            {
                CSVRecordFieldConfigurations.Add(new ChoCSVRecordFieldConfiguration(fn));
            }

            return(CSVRecordFieldConfigurations.First(fc => fc.Name == fn));
        }
예제 #2
0
        internal ChoCSVRecordFieldConfiguration GetFieldConfiguration(string fn, ChoCSVRecordFieldAttribute attr = null, Attribute[] otherAttrs = null)
        {
            if (!CSVRecordFieldConfigurations.Any(fc => fc.Name == fn))
            {
                CSVRecordFieldConfigurations.Add(new ChoCSVRecordFieldConfiguration(fn, attr, otherAttrs));
            }

            return(CSVRecordFieldConfigurations.First(fc => fc.Name == fn));
        }